fix ld unrecognized option '-g3'
ld: unrecognized option '-g3' ld: use the --help option for usage information Signed-off-by: v-tangmeng <v-tangmeng@xiaomi.com>
This commit is contained in:
parent
c36d067603
commit
fec6e248b9
2 changed files with 2 additions and 2 deletions
|
|
@ -83,7 +83,7 @@ add_compile_options(--tradeoff=2)
|
||||||
if(CONFIG_DEBUG_SYMBOLS)
|
if(CONFIG_DEBUG_SYMBOLS)
|
||||||
add_compile_options(--debug-info=default)
|
add_compile_options(--debug-info=default)
|
||||||
add_compile_options(--keep-temporary-files)
|
add_compile_options(--keep-temporary-files)
|
||||||
add_link_options(-g)
|
add_compile_options(${CONFIG_DEBUG_SYMBOLS_LEVEL})
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# merge source code with assembly output
|
# merge source code with assembly output
|
||||||
|
|
|
||||||
|
|
@ -77,7 +77,7 @@ ARCHOPTIMIZATION += --tradeoff=2
|
||||||
ifeq ($(CONFIG_DEBUG_SYMBOLS),y)
|
ifeq ($(CONFIG_DEBUG_SYMBOLS),y)
|
||||||
ARCHOPTIMIZATION += --debug-info=default
|
ARCHOPTIMIZATION += --debug-info=default
|
||||||
ARCHOPTIMIZATION += --keep-temporary-files
|
ARCHOPTIMIZATION += --keep-temporary-files
|
||||||
LDFLAGS += $(CONFIG_DEBUG_SYMBOLS_LEVEL)
|
ARCHOPTIMIZATION += $(CONFIG_DEBUG_SYMBOLS_LEVEL)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# merge source code with assembly output
|
# merge source code with assembly output
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue