Module: kamailio
Branch: master
Commit: 5d4002415fd8377c5384beee387acf5ba9e2dfd3
URL: 
https://github.com/kamailio/kamailio/commit/5d4002415fd8377c5384beee387acf5ba9e2dfd3

Author: S-P Chan <shihping.c...@gmail.com>
Committer: S-P Chan <shihping.c...@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/5d4002415fd8377c5384beee387acf5ba9e2dfd3.diff
Patch: 
https://github.com/kamailio/kamailio/commit/5d4002415fd8377c5384beee387acf5ba9e2dfd3.patch

---

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

_______________________________________________
Kamailio - Development Mailing List -- sr-dev@lists.kamailio.org
To unsubscribe send an email to sr-dev-le...@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!

Reply via email to