Skip to content

Commit f39198d

Browse files
move build-env setting to correct place
Signed-off-by: Nikolaj Bjorner <[email protected]>
1 parent 197951c commit f39198d

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/api/python/setup.py

+4-3
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,14 @@ class LibError(Exception):
3737
BUILD_PLATFORM = "emscripten"
3838
BUILD_ARCH = "wasm32"
3939
BUILD_OS_VERSION = os.environ['_PYTHON_HOST_PLATFORM'].split('_')[1:-1]
40+
build_env['CFLAGS'] = build_env.get('CFLAGS', '') + " -fexceptions -pthread"
41+
build_env['CXXFLAGS'] = build_env.get('CXXFLAGS', '') + " -fexceptions -pthread"
42+
build_env['LDFLAGS'] = build_env.get('LDFLAGS', '') + " -fexceptions -pthread"
43+
4044
else:
4145
BUILD_PLATFORM = sys.platform
4246
BUILD_ARCH = os.environ.get("Z3_CROSS_COMPILING", platform.machine())
4347
BUILD_OS_VERSION = platform.mac_ver()[0].split(".")[:2]
44-
build_env['CFLAGS'] = build_env.get('CFLAGS', '') + " -fexceptions -pthread"
45-
build_env['CXXFLAGS'] = build_env.get('CXXFLAGS', '') + " -fexceptions -pthread"
46-
build_env['LDFLAGS'] = build_env.get('LDFLAGS', '') + " -fexceptions -pthread"
4748
else:
4849
if not os.path.isdir(RELEASE_DIR):
4950
raise Exception("RELEASE_DIR (%s) is not a directory!" % RELEASE_DIR)

0 commit comments

Comments
 (0)