mirror of
https://github.com/apache/nuttx.git
synced 2026-08-09 06:25:09 +00:00
boards/sim: Change -fprofile-arcs to -fprofile-generate
to generate more information for profile feedback optimization and remove -lgcov from STDLIBS since gcc/clang will automatically add the profile help lirary(triggered by -fprofile-generate). Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
parent
3983efa47e
commit
eba185b04b
2 changed files with 1 additions and 5 deletions
|
|
@ -103,10 +103,6 @@ ifeq ($(CONFIG_STACK_COLORATION),y)
|
|||
CSRCS += up_checkstack.c
|
||||
endif
|
||||
|
||||
ifeq ($(CONFIG_ARCH_COVERAGE),y)
|
||||
STDLIBS += -lgcov
|
||||
endif
|
||||
|
||||
ifeq ($(CONFIG_SPINLOCK),y)
|
||||
HOSTSRCS += up_testset.c
|
||||
endif
|
||||
|
|
|
|||
|
|
@ -68,7 +68,7 @@ ifeq ($(CONFIG_STACK_CANARIES),y)
|
|||
endif
|
||||
|
||||
ifeq ($(CONFIG_ARCH_COVERAGE),y)
|
||||
ARCHOPTIMIZATION += -fprofile-arcs -ftest-coverage
|
||||
ARCHOPTIMIZATION += -fprofile-generate -ftest-coverage
|
||||
endif
|
||||
|
||||
# Add -fno-common because macOS "ld -r" doesn't seem to pick objects
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue