Skip to content

Commit a1b8bf8

Browse files
use werror bacK
1 parent ff018db commit a1b8bf8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

libc/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ if (CMAKE_BUILD_TYPE STREQUAL "Debug")
3434
add_definitions("-D_DEBUG")
3535
endif()
3636

37+
add_compile_options("-Werror=global-constructors")
38+
3739
# Default to C++17
3840
set(CMAKE_CXX_STANDARD 17)
3941

0 commit comments

Comments
 (0)