summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Cournapeau <cournape@gmail.com>2011-04-06 09:19:13 +0900
committerDavid Cournapeau <cournape@gmail.com>2011-08-29 00:32:25 +0200
commitf6736078a554f14768420b0a43b9f1d596762bcd (patch)
tree2e4ffecb61e974de047dd7682b86e9b86f40f645
parenta52f88fc04fd7f7548dce3f8489a42f628e54cbd (diff)
downloadnumpy-f6736078a554f14768420b0a43b9f1d596762bcd.tar.gz
FEAT: add basics for separate build.
-rw-r--r--numpy/core/bscript9
1 files changed, 7 insertions, 2 deletions
diff --git a/numpy/core/bscript b/numpy/core/bscript
index a177e57cd..9b74c7479 100644
--- a/numpy/core/bscript
+++ b/numpy/core/bscript
@@ -31,11 +31,16 @@ from setup_common \
C99_FUNCS_SINGLE, C99_COMPLEX_TYPES, C99_COMPLEX_FUNCS, \
MANDATORY_FUNCS, C_ABI_VERSION, C_API_VERSION
+ENABLE_SEPARATE_COMPILATION = False
+
NUMPYCONFIG_SYM = []
# FIXME
-NUMPYCONFIG_SYM.append(('DEFINE_NPY_ENABLE_SEPARATE_COMPILATION', ''))
-NUMPYCONFIG_SYM.append(('VISIBILITY_HIDDEN', ''))
+if ENABLE_SEPARATE_COMPILATION:
+ NUMPYCONFIG_SYM.append(('DEFINE_NPY_ENABLE_SEPARATE_COMPILATION', '#define NPY_ENABLE_SEPARATE_COMPILATION 1'))
+else:
+ NUMPYCONFIG_SYM.append(('DEFINE_NPY_ENABLE_SEPARATE_COMPILATION', ''))
+NUMPYCONFIG_SYM.append(('VISIBILITY_HIDDEN', '__attribute__((visibility("hidden")))'))
NUMPYCONFIG_SYM.append(('NPY_ABI_VERSION', '0x%.8X' % C_ABI_VERSION))
NUMPYCONFIG_SYM.append(('NPY_API_VERSION', '0x%.8X' % C_API_VERSION))