Module: kamailio
Branch: master
Commit: 5d4002415fd8377c5384beee387acf5ba9e2dfd3
URL:
https://github.com/kamailio/kamailio/commit/5d4002415fd8377c5384beee387acf5…
Author: S-P Chan <shihping.chan(a)gmail.com>
Committer: S-P Chan <shihping.chan(a)gmail.com>
Date: 2024-12-24T06:50:08+08:00
cmake: remove redundant default optimization level
- user can prepend compiler options with CFLAGS="-g -O2" cmake ...
---
Modified: cmake/compiler-specific.cmake
---
Diff:
https://github.com/kamailio/kamailio/commit/5d4002415fd8377c5384beee387acf5…
Patch:
https://github.com/kamailio/kamailio/commit/5d4002415fd8377c5384beee387acf5…
---
diff --git a/cmake/compiler-specific.cmake b/cmake/compiler-specific.cmake
index f6bd54c2655..e0d15601bf5 100644
--- a/cmake/compiler-specific.cmake
+++ b/cmake/compiler-specific.cmake
@@ -13,11 +13,6 @@ if(CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64")
if(CMAKE_C_COMPILER_ID STREQUAL "GNU")
target_compile_definitions(common INTERFACE CC_GCC_LIKE_ASM)
- target_compile_options(
- common INTERFACE -O0
- # <$<$<BOOL:${PROFILE}>:-pg>
- )
-
target_compile_options(
common
INTERFACE -Wall -funroll-loops -Wcast-align