Skip to content

Commit e699e09

Browse files
committed
application: don't pass -pg by default for demo_profiling
ERROR: Unable to build ./baremetal/demo_profiling for CORE=n300 ARCH_EXT=_zca_zcb_zcmp_zcmt_xxlcz riscv64-unknown-elf-gcc: error: -pg and -fomit-frame-pointer are incompatible Signed-off-by: Huaqi Fang <578567190@qq.com>
1 parent ba869f6 commit e699e09

File tree

1 file changed

+3
-1
lines changed
  • application/baremetal/demo_profiling

1 file changed

+3
-1
lines changed

application/baremetal/demo_profiling/Makefile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,9 @@ COMMON_FLAGS := -O0
3636
# -coverage enables coverage analysis (requires more memory)
3737
# NOTE: when -coverage is passed, then heap will not be enough
3838
# you need to change DOWNLOAD to ddr
39-
APP_COMMON_FLAGS := -pg
39+
# when Zc extension used, -fomit-frame-pointer is passed but
40+
# -pg and -fomit-frame-pointer are incompatible
41+
APP_COMMON_FLAGS :=
4042

4143
# App-specific C compilation flags
4244
APP_CFLAGS :=

0 commit comments

Comments
 (0)