diff options
-rw-r--r-- | bam.lua | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -131,11 +131,10 @@ local dev_cdrom = cdrom("dev", dev_settings) local rel_settings = TableDeepCopy(base_settings) for _, s in pairs(rel_settings) do s.cc.flags:Add("-Os", "-flto") - s.link.flags:Add("-Os", "-flto") + s.link.flags:Add("-Os", "-flto", "-Wl,--gc-sections") - -- Maybee + -- Maybe do this, goes with --gc-sections -- s.cc.flags:Add("-ffunction-sections", "-fdata-sections") - -- s.link.flags:Add("-Wl,--gc-sections") end local rel_cdrom = cdrom("rel", rel_settings) |