diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e46dda4df9..df796a61ab 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -86,6 +86,7 @@ jobs: -DWITH_BENCHMARK_TOOLS=OFF \ -DWITH_CORE_TOOLS=OFF \ -DROCKSDB_BUILD_SHARED=Off \ + -DCMAKE_POSITION_INDEPENDENT_CODE=On \ .. sudo make -j$(nproc) install diff --git a/nix/build-all.py b/nix/build-all.py index dce2af41f9..e04a7f2da3 100644 --- a/nix/build-all.py +++ b/nix/build-all.py @@ -191,7 +191,8 @@ TOOLSET = None if platform.system() == "Darwin": # C++11 features used in OCCT 7+ need a more recent stdlib TOOLSET = "10.9" if USE_OCCT else "10.6" - + # /Users/runner/work/IfcOpenShell/IfcOpenShell/build/Darwin/arm64/10.9/build/rocksdb/cache/clock_cache.cc:732:14: error: aligned allocation function of type 'void *(std::size_t, std::align_val_t)' is only available on macOS 10.13 or newer + TOOLSET = "10.13" IFCOS_NUM_BUILD_PROCS = os.getenv("IFCOS_NUM_BUILD_PROCS", multiprocessing.cpu_count() + 1)