Skip to content

Commit 47413bb

Browse files
authored
[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 <[email protected]>
1 parent f10302e commit 47413bb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libunwind/src/CMakeLists.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ target_link_libraries(unwind_shared_objects PUBLIC "${LIBUNWIND_ADDITIONAL_LIBRA
154154
set_target_properties(unwind_shared_objects
155155
PROPERTIES
156156
CXX_EXTENSIONS OFF
157-
CXX_STANDARD 11
157+
CXX_STANDARD 17
158158
CXX_STANDARD_REQUIRED ON
159159
COMPILE_FLAGS "${LIBUNWIND_COMPILE_FLAGS}"
160160
)
@@ -194,7 +194,7 @@ target_link_libraries(unwind_static_objects PUBLIC "${LIBUNWIND_ADDITIONAL_LIBRA
194194
set_target_properties(unwind_static_objects
195195
PROPERTIES
196196
CXX_EXTENSIONS OFF
197-
CXX_STANDARD 11
197+
CXX_STANDARD 17
198198
CXX_STANDARD_REQUIRED ON
199199
COMPILE_FLAGS "${LIBUNWIND_COMPILE_FLAGS}"
200200
)

0 commit comments

Comments
 (0)