Skip to content

Commit

Permalink
move build-env setting to correct place
Browse files Browse the repository at this point in the history
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
  • Loading branch information
NikolajBjorner committed Nov 16, 2024
1 parent 197951c commit f39198d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/api/python/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,14 @@ class LibError(Exception):
BUILD_PLATFORM = "emscripten"
BUILD_ARCH = "wasm32"
BUILD_OS_VERSION = os.environ['_PYTHON_HOST_PLATFORM'].split('_')[1:-1]
build_env['CFLAGS'] = build_env.get('CFLAGS', '') + " -fexceptions -pthread"
build_env['CXXFLAGS'] = build_env.get('CXXFLAGS', '') + " -fexceptions -pthread"
build_env['LDFLAGS'] = build_env.get('LDFLAGS', '') + " -fexceptions -pthread"

else:
BUILD_PLATFORM = sys.platform
BUILD_ARCH = os.environ.get("Z3_CROSS_COMPILING", platform.machine())
BUILD_OS_VERSION = platform.mac_ver()[0].split(".")[:2]
build_env['CFLAGS'] = build_env.get('CFLAGS', '') + " -fexceptions -pthread"
build_env['CXXFLAGS'] = build_env.get('CXXFLAGS', '') + " -fexceptions -pthread"
build_env['LDFLAGS'] = build_env.get('LDFLAGS', '') + " -fexceptions -pthread"
else:
if not os.path.isdir(RELEASE_DIR):
raise Exception("RELEASE_DIR (%s) is not a directory!" % RELEASE_DIR)
Expand Down

0 comments on commit f39198d

Please sign in to comment.