Skip to content

Commit

Permalink
Edit the Weaver CMake to allow c++17 build.
Browse files Browse the repository at this point in the history
  • Loading branch information
tpatki committed Sep 26, 2024
1 parent ec15008 commit 9034235
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/c/weaver/weave/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,14 @@ else()
)
endif()

# Use C++11 to compile our pass (i.e., supply -std=c++11).
target_compile_features(WeavePass PRIVATE cxx_range_for cxx_auto_type)
if (PERFFLOWASPECT_CLANG_14_NEWER)
# Use C++17 to compile our pass
target_compile_features(WeavePass PRIVATE cxx_std_17 cxx_range_for cxx_auto_type)
else()
# Use C++11/C++14 to compile our pass (i.e., supply -std=c++11) (pick default)
target_compile_features(WeavePass PRIVATE cxx_range_for cxx_auto_type)
endif()


# LLVM is (typically) built with no C++ RTTI. We need to match that;
# otherwise, we'll get linker errors about missing RTTI data.
Expand Down

0 comments on commit 9034235

Please sign in to comment.