mirror of
https://github.com/bouffalolab/bouffalo_sdk.git
synced 2025-05-08 19:07:22 +08:00
[chore] update cmake config
This commit is contained in:
parent
a05d70b078
commit
880bfe03da
@ -5,27 +5,33 @@ sdk_add_compile_options(
|
||||
-ffunction-sections
|
||||
-fdata-sections
|
||||
-fmessage-length=0
|
||||
-fstrict-volatile-bitfields
|
||||
-fshort-enums
|
||||
-MMD
|
||||
-Wall
|
||||
-Wchar-subscripts
|
||||
-Wformat
|
||||
# -Wformat
|
||||
-Wno-format
|
||||
-Wundef
|
||||
-Wuninitialized
|
||||
-Winit-self
|
||||
-Wignored-qualifiers
|
||||
-fstrict-volatile-bitfields
|
||||
-fshort-enums
|
||||
-MMD
|
||||
-Wno-error=unused-variable
|
||||
-Wno-error=format=
|
||||
-Wno-error=unused-function
|
||||
-Wno-error=implicit-function-declaration
|
||||
-Wno-error=deprecated-declarations
|
||||
# -Wno-error=absolute-value
|
||||
# -Wno-error=type-limits
|
||||
# -Wno-error=cpp -Wextra
|
||||
-Wno-format
|
||||
# -Wno-unused-parameter
|
||||
# -Wno-sign-compare
|
||||
# -Wno-error=unused-variable
|
||||
# -Wno-error=unused-but-set-variable
|
||||
# -Wno-error=maybe-uninitialized
|
||||
# -Wno-error=format=
|
||||
# -Wno-error=unused-function
|
||||
# -Wno-error=implicit-function-declaration
|
||||
# -Wno-error=incompatible-pointer-types
|
||||
# -Wno-error=discarded-qualifiers
|
||||
# -Wno-error=int-to-pointer-cast
|
||||
# -Wno-error=absolute-value
|
||||
# -Wno-error=type-limits
|
||||
# -Wno-error=cpp
|
||||
# $<$<COMPILE_LANGUAGE:C>:-Werror>
|
||||
# $<$<COMPILE_LANGUAGE:C>:-Wextra>
|
||||
# $<$<COMPILE_LANGUAGE:C>:-Wno-old-style-declaration>
|
||||
# $<$<COMPILE_LANGUAGE:C>:-Wno-override-init>
|
||||
# $<$<COMPILE_LANGUAGE:C>:-Wno-enum-conversion>
|
||||
@ -35,7 +41,6 @@ $<$<COMPILE_LANGUAGE:CXX>:-std=c++11>
|
||||
$<$<COMPILE_LANGUAGE:CXX>:-nostdlib>
|
||||
$<$<COMPILE_LANGUAGE:CXX>:-fno-rtti>
|
||||
$<$<COMPILE_LANGUAGE:CXX>:-fno-exceptions>
|
||||
# $<$<COMPILE_LANGUAGE:C>:-Werror>
|
||||
-fstack-usage
|
||||
-save-temps=obj
|
||||
)
|
||||
|
@ -247,6 +247,7 @@ macro(project name)
|
||||
endif()
|
||||
|
||||
get_property(SDK_LIBS_PROPERTY GLOBAL PROPERTY SDK_LIBS)
|
||||
list(SORT SDK_LIBS_PROPERTY)
|
||||
target_link_libraries(${proj_name}.elf -Wl,--whole-archive ${SDK_LIBS_PROPERTY} app -Wl,--no-whole-archive)
|
||||
|
||||
if(OUTPUT_DIR)
|
||||
|
@ -72,8 +72,8 @@ cmake_definition+= -DCONFIG_COREDUMP=$(CONFIG_COREDUMP)
|
||||
|
||||
build:Makefile
|
||||
$(CMAKE) -S . -B build -G $(cmake_generator) $(cmake_definition)
|
||||
make -C build -j8
|
||||
make -C build combine
|
||||
$(MAKE) -C build -j8
|
||||
$(MAKE) -C build combine
|
||||
|
||||
ninja:Makefile
|
||||
$(CMAKE) -S . -B build -G Ninja $(cmake_definition)
|
||||
|
Loading…
x
Reference in New Issue
Block a user