From f747f47ba8a1af5384bb34c12670699c28179fb8 Mon Sep 17 00:00:00 2001 From: "Kevin R. Thornton" Date: Fri, 31 Mar 2023 09:56:45 -0700 Subject: [PATCH] disable link-time optimization in CI (#1147) --- .github/workflows/docs.yml | 2 +- .github/workflows/tests.yml | 2 +- .github/workflows/ubuntu.yml | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index f5f5af392..e36ef83f8 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -95,7 +95,7 @@ jobs: - name: Build module run: | - python3 -m pip install -e . + python3 -m pip install -e . --install-option="--disable_lto" - name: Build the docs working-directory: doc diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 79f1fe35e..23dd89f8c 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -107,7 +107,7 @@ jobs: run: | source ~/.bashrc conda activate anaconda-client-env - cmake -S. -Bbuild -DCMAKE_BUILD_TYPE=Release -DBUILD_CPP_UNIT_TESTS=ON -DBUILD_PYTHON_UNIT_TESTS=ON + cmake -S. -Bbuild -DCMAKE_BUILD_TYPE=Release -DBUILD_CPP_UNIT_TESTS=ON -DBUILD_PYTHON_UNIT_TESTS=ON -DDISABLE_LTO=ON cmake --build build -j 4 - name: Run C++ tests diff --git a/.github/workflows/ubuntu.yml b/.github/workflows/ubuntu.yml index e8bff5637..490ab1efe 100644 --- a/.github/workflows/ubuntu.yml +++ b/.github/workflows/ubuntu.yml @@ -111,7 +111,7 @@ jobs: run: | cmake -E env CPPFLAGS="$CPPFLAGS" \ cmake -E env CC="$CC" \ - cmake -E env CXX="$CXX" cmake -S. -Bbuild -DCMAKE_BUILD_TYPE=Release -DBUILD_CPP_UNIT_TESTS=ON -DBUILD_CPP_BENCHMARK=ON -DBUILD_PYTHON_UNIT_TESTS=ON + cmake -E env CXX="$CXX" cmake -S. -Bbuild -DCMAKE_BUILD_TYPE=Release -DBUILD_CPP_UNIT_TESTS=ON -DBUILD_CPP_BENCHMARK=ON -DBUILD_PYTHON_UNIT_TESTS=ON -DDISABLE_LTO=ON cmake --build build -j 4 - name: Run C++ tests @@ -143,7 +143,7 @@ jobs: - name: Test pip install from dist in fresh venv run: | python -m pip install --upgrade setuptools pip wheel build - python -m build . + python -m build . --config-setting=--disable_lto cd dist python -m venv venv source venv/bin/activate