Skip to content

Commit ef52bbf

Browse files
committed
Build heartbleed legacy with -O0 -g3
As an example of how to make a firmware build with debug symbols and -O0, the heartbleed demo legacy component serves as a nice example case. Signed-off-by: Alex Jones <[email protected]>
1 parent ced04cf commit ef52bbf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

examples/heartbleed/legacy/xmake.lua

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,4 +98,5 @@ legacy_firmware("heartbleed_demo_legacy")
9898
add_files(
9999
"../../../third_party/sonata-system/vendor/cheriot_debug_module/tb/prog/syscalls.c"
100100
)
101-
add_files("heartbleed.c", "../common.c", "lcd.c")
101+
-- Keep the "-g3 -O0" flags as an example of a legacy flow that supports using a debugger
102+
add_files("heartbleed.c", "../common.c", "lcd.c", {force = {cxflags = {"-g3", "-O0"}}})

0 commit comments

Comments
 (0)