Browse Source

合并主线修改

master
Lizongdi 4 days ago
parent
commit
1604d37996
  1. 3
      library/CMakeLists.txt
  2. 1
      main/CMakeLists.txt

3
library/CMakeLists.txt

@ -21,7 +21,7 @@ endif()
# #
if(NOT NEED_FLATTEN) if(NOT NEED_FLATTEN)
file(GLOB MODULE_SRCS CONFIGURE_DEPENDS "${CMAKE_CURRENT_SOURCE_DIR}/*.c") file(GLOB_RECURSE MODULE_SRCS CONFIGURE_DEPENDS "${CMAKE_CURRENT_SOURCE_DIR}/*.c")
# #
list(FILTER MODULE_SRCS EXCLUDE REGEX ".*[~]$|.*\\.bak$|.*\\.swp$") list(FILTER MODULE_SRCS EXCLUDE REGEX ".*[~]$|.*\\.bak$|.*\\.swp$")
endif() endif()
@ -203,6 +203,7 @@ endif()
target_compile_options(${TARGET_NAME} PRIVATE target_compile_options(${TARGET_NAME} PRIVATE
-Wall -Werror -Wall -Werror
-ffunction-sections -fdata-sections -ffunction-sections -fdata-sections
-Wno-unused-function
$<$<CONFIG:Debug>:-g -O0> $<$<CONFIG:Debug>:-g -O0>
$<$<CONFIG:Release>:-O2> $<$<CONFIG:Release>:-O2>
) )

1
main/CMakeLists.txt

@ -55,6 +55,7 @@ endif()
target_compile_options(${TARGET_NAME} PRIVATE target_compile_options(${TARGET_NAME} PRIVATE
-Wall -Werror -Wall -Werror
-ffunction-sections -fdata-sections -ffunction-sections -fdata-sections
-Wno-unused-function
$<$<CONFIG:Debug>:-g -O0> $<$<CONFIG:Debug>:-g -O0>
$<$<CONFIG:Release>:-O2> $<$<CONFIG:Release>:-O2>
) )

Loading…
Cancel
Save