Skip to content

Commit

Permalink
Checking compiler before setting Clang-specific compiler options
Browse files Browse the repository at this point in the history
  • Loading branch information
mkatliar committed Sep 19, 2024
1 parent e9034c1 commit 82886df
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions bench/common/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ target_link_libraries(bench-blast-common
PUBLIC benchmark::benchmark
)

target_compile_options(bench-blast-common
PUBLIC "-mllvm" "-inline-threshold=1000"
)
if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
# More aggressive inlining with Clang
target_compile_options(bench-blast-common
PUBLIC "-mllvm" "-inline-threshold=1000"
)
endif()

0 comments on commit 82886df

Please sign in to comment.