Skip to content

Commit a2a7e72

Browse files
committed
for my sanity - add -DNDEBUG to Clang profile (Unix)
1 parent 77ed416 commit a2a7e72

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cmake/adjust/template/vendor/impl/Clang.cmake

+2
Original file line numberDiff line numberDiff line change
@@ -101,12 +101,14 @@ else()
101101
-O2 # https://clang.llvm.org/docs/ClangCommandLineReference.html#cmdoption-clang-O-arg
102102
-Xclang=-finline-functions # https://clang.llvm.org/docs/ClangCommandLineReference.html#cmdoption-clang-finline-functions
103103
-mno-incremental-linker-compatible # https://clang.llvm.org/docs/ClangCommandLineReference.html#cmdoption-clang-mincremental-linker-compatible
104+
-DNDEBUG
104105
)
105106

106107
NBL_REQUEST_COMPILE_OPTION_SUPPORT(LANG ${LANG} CONFIG RELWITHDEBINFO COMPILE_OPTIONS
107108
-g # https://clang.llvm.org/docs/ClangCommandLineReference.html#cmdoption-clang-g
108109
-O1 # https://clang.llvm.org/docs/ClangCommandLineReference.html#cmdoption-clang-O-arg
109110
-Xclang=-finline-functions # https://clang.llvm.org/docs/ClangCommandLineReference.html#cmdoption-clang-finline-functions
110111
-mno-incremental-linker-compatible # https://clang.llvm.org/docs/ClangCommandLineReference.html#cmdoption-clang-mincremental-linker-compatible
112+
-DNDEBUG
111113
)
112114
endif()

0 commit comments

Comments
 (0)