Skip to content

Commit

Permalink
cmake: specify clang as the compiler (#1918)
Browse files Browse the repository at this point in the history
This makes the build work on a system with both gcc and clang installed (gcc being the default)
  • Loading branch information
Mario-cmd-4224 committed Feb 10, 2025
1 parent 2f800e6 commit 4610e44
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ echo "#### Generating files... ####"
tools/generate-files

echo "#### Building... ####"
cmake -H. -Bbuild -DCMAKE_BUILD_TYPE=Debug
cmake -H. -Bbuild -DCMAKE_BUILD_TYPE=Debug \
-DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++
make -Cbuild -j12 tests TrezorCryptoTests

if [ -x "$(command -v clang-tidy)" ]; then
Expand Down

0 comments on commit 4610e44

Please sign in to comment.