From dc3555be4f9cbb7e60f5cb4e02b99e1738bc5817 Mon Sep 17 00:00:00 2001 From: Zhou Kang Date: Fri, 30 Jun 2023 03:56:50 +0000 Subject: [PATCH] fix debug compile --- src/meson.build | 3 ++- tests/test_simple/Makefile | 1 - 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/meson.build b/src/meson.build index f53bbcd..2062916 100644 --- a/src/meson.build +++ b/src/meson.build @@ -18,8 +18,9 @@ ext_deps = [] deps = static_link_libraries if get_option('buildtype').contains('debug') + # debug compile need with debuginfo default_cflags += [ '-pedantic', '-DPEDANTIC', '-Og', '-g', '-rdynamic' ] - default_ldflags += ['-rdynamic'] + default_ldflags += [ '-Og', '-g', '-rdynamic'] else default_cflags += [ '-UPEDANTIC', '-O2' ] endif diff --git a/tests/test_simple/Makefile b/tests/test_simple/Makefile index 261d425..7b2379b 100644 --- a/tests/test_simple/Makefile +++ b/tests/test_simple/Makefile @@ -30,7 +30,6 @@ simple_app: # static mode simple: simple_app - clear @echo ===rto=== $(SYSBOOST) --static-nold $(TEST_APP) $(LIBC) readelf -W -a $(TEST_APP).rto > simple_app.rto.elf -- Gitee