From 8fcb00cccd2476dc7852e4a5e07e1f89bd15474b Mon Sep 17 00:00:00 2001 From: Filip Jagodzinski Date: Fri, 22 Nov 2019 13:00:08 +0100 Subject: [PATCH] ARMC6: Enable link-time optimizer for develop profile --- tools/profiles/develop.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/profiles/develop.json b/tools/profiles/develop.json index f8626d86f9..cd05490bcb 100644 --- a/tools/profiles/develop.json +++ b/tools/profiles/develop.json @@ -15,7 +15,7 @@ "-Wl,-n"] }, "ARMC6": { - "common": ["-c", "--target=arm-arm-none-eabi", "-mthumb", "-Os", + "common": ["-c", "--target=arm-arm-none-eabi", "-mthumb", "-Os", "-flto", "-Wno-armcc-pragma-push-pop", "-Wno-armcc-pragma-anon-unions", "-Wno-reserved-user-defined-literal", "-Wno-deprecated-register", "-DMULADDC_CANNOT_USE_R7", "-fdata-sections", @@ -25,7 +25,7 @@ "c": ["-D__ASSERT_MSG", "-std=gnu11"], "cxx": ["-fno-rtti", "-std=gnu++14"], "ld": ["--show_full_path", "--legacyalign", "--any_contingency", - "--keep=os_cb_sections"] + "--keep=os_cb_sections", "--lto", "--lto_level=Os"] }, "ARM": { "common": ["-c", "--gnu", "-Ospace", "--split_sections",