mirror of
https://github.com/autc04/Retro68.git
synced 2024-11-26 06:49:33 +00:00
build Samples/Dialog as single-segment app (to prevent the code path from rotting)
This commit is contained in:
parent
32a2da9547
commit
c10538e350
@ -27,3 +27,11 @@ add_application(Dialog
|
||||
dialog.c
|
||||
dialog.r
|
||||
)
|
||||
|
||||
# Enable -ffunction-sections and -gc-sections to make the app as small as possible
|
||||
# also enable --mac-single to build it as a single-segment app (so that this code path doesn't rot)
|
||||
set_target_properties(Dialog
|
||||
PROPERTIES
|
||||
COMPILE_OPTIONS -ffunction-sections
|
||||
LINK_FLAGS "-Wl,-gc-sections -Wl,--mac-single"
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user