diff --git a/nix/build-all.py b/nix/build-all.py index ec600358ce..9e340b2388 100644 --- a/nix/build-all.py +++ b/nix/build-all.py @@ -378,7 +378,9 @@ if TARGET_ARCH == "i686" and __check_output__([uname, "-m"]).strip() == "x86_64" BOOST_ADDRESS_MODEL=["architecture=x86", "address-model=32"] if get_os() == "Darwin": - ADDITIONAL_ARGS=["-mmacosx-version-min=10.6"]+ADDITIONAL_ARGS + # C++11 features used in OCCT 7+ need a more recent stdlib + version_min = "10.9" if USE_OCCT else "10.6" + ADDITIONAL_ARGS=["-mmacosx-version-min=" % version_min]+ADDITIONAL_ARGS # If the linker supports GC sections, set it up to reduce binary file size # -fPIC is required for the shared libraries to work