diff options
author | Fangrui Song <i@maskray.me> | 2023-12-19 21:51:05 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-19 21:51:05 -0800 |
commit | 47413bb2760e63a3302871ea770d6c0f5a742036 (patch) | |
tree | ae2eceebaf313cafc4ce8ba0ba0c585a2bbe7cec /libunwind | |
parent | f10302e3fa468a22a43e7d6bd6ec75919c60d72d (diff) | |
download | llvm-47413bb2760e63a3302871ea770d6c0f5a742036.zip llvm-47413bb2760e63a3302871ea770d6c0f5a742036.tar.gz llvm-47413bb2760e63a3302871ea770d6c0f5a742036.tar.bz2 |
[libunwind] Bump to CXX_STANDARD 17 (#75986)
libunwind uses C-style and low-level C++, so the language standard
doesn't matter that much, but bumping to C++17 aligns with the rest of
LLVM and enables some features that would cause pedantic warnings in
C++11 (e.g. -Wc++17-attribute-extensions for [[fallthrough]]/
[[nodiscard]]/[[maybe_unused]]). (Contributors might use these features
unaware of the pedantic warnings).
Suggested-by: Christopher Di Bella <cjdb@google.com>
Diffstat (limited to 'libunwind')
-rw-r--r-- | libunwind/src/CMakeLists.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libunwind/src/CMakeLists.txt b/libunwind/src/CMakeLists.txt index 5708242..9c6f5d9 100644 --- a/libunwind/src/CMakeLists.txt +++ b/libunwind/src/CMakeLists.txt @@ -154,7 +154,7 @@ target_link_libraries(unwind_shared_objects PUBLIC "${LIBUNWIND_ADDITIONAL_LIBRA set_target_properties(unwind_shared_objects PROPERTIES CXX_EXTENSIONS OFF - CXX_STANDARD 11 + CXX_STANDARD 17 CXX_STANDARD_REQUIRED ON COMPILE_FLAGS "${LIBUNWIND_COMPILE_FLAGS}" ) @@ -194,7 +194,7 @@ target_link_libraries(unwind_static_objects PUBLIC "${LIBUNWIND_ADDITIONAL_LIBRA set_target_properties(unwind_static_objects PROPERTIES CXX_EXTENSIONS OFF - CXX_STANDARD 11 + CXX_STANDARD 17 CXX_STANDARD_REQUIRED ON COMPILE_FLAGS "${LIBUNWIND_COMPILE_FLAGS}" ) |