瀏覽代碼

cmake: remove redundant default optimization level

- user can prepend compiler options with CFLAGS="-g -O2" cmake ...
S-P Chan 8 月之前
父節點
當前提交
5d4002415f
共有 1 個文件被更改,包括 0 次插入5 次删除
  1. 0 5
      cmake/compiler-specific.cmake

+ 0 - 5
cmake/compiler-specific.cmake

@@ -13,11 +13,6 @@ if(CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64")
   if(CMAKE_C_COMPILER_ID STREQUAL "GNU")
   if(CMAKE_C_COMPILER_ID STREQUAL "GNU")
     target_compile_definitions(common INTERFACE CC_GCC_LIKE_ASM)
     target_compile_definitions(common INTERFACE CC_GCC_LIKE_ASM)
 
 
-    target_compile_options(
-      common INTERFACE -O0
-                       # <$<$<BOOL:${PROFILE}>:-pg>
-    )
-
     target_compile_options(
     target_compile_options(
       common
       common
       INTERFACE -Wall -funroll-loops -Wcast-align
       INTERFACE -Wall -funroll-loops -Wcast-align