Skip to content

Commit 88bb61b

Browse files
committed
build lib-benchmark from source to avoid a linker error about incompatible LTO versions
1 parent 48cf515 commit 88bb61b

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

.github/workflows/cpp_ci.yaml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,17 @@ jobs:
1515
uses: actions/checkout@v4
1616

1717
- name: Install C++ dependencies
18-
run: sudo apt-get update && sudo apt-get install -y build-essential cmake libgtest-dev libbenchmark-dev
18+
run: sudo apt-get update && sudo apt-get install -y build-essential cmake libgtest-dev # libbenchmark-dev
19+
20+
# 2025-05-12: Added to resolve a linker error about the compiler and benchmark having different LTO versions.
21+
# Hopefully this can be removed in the future.
22+
- name: Build Google Benchmark from source
23+
run: |
24+
git clone https://github.com/google/benchmark.git
25+
cd benchmark
26+
git clone https://github.com/google/googletest.git
27+
cmake -B build -S . -DCMAKE_BUILD_TYPE=Release
28+
cmake --build build --target install
1929
2030
- name: Setup
2131
run: cmake -B out -S .

0 commit comments

Comments
 (0)