diff --git a/tools/profiles/debug.json b/tools/profiles/debug.json index dc0ace4e0b..b5c6dbec93 100644 --- a/tools/profiles/debug.json +++ b/tools/profiles/debug.json @@ -16,10 +16,11 @@ "-Wl,-n"] }, "ARMC6": { - "common": ["-c", "--target=arm-arm-none-eabi", "-mthumb", "-g", "-O0", + "common": ["-c", "--target=arm-arm-none-eabi", "-mthumb", "-g", "-O1", "-Wno-armcc-pragma-push-pop", "-Wno-armcc-pragma-anon-unions", "-DMULADDC_CANNOT_USE_R7", "-fdata-sections", - "-fno-exceptions", "-MMD", "-D_LIBCPP_EXTERN_TEMPLATE(...)="], + "-fno-exceptions", "-MMD", "-D_LIBCPP_EXTERN_TEMPLATE(...)=", + "-fshort-enums", "-fshort-wchar" ], "asm": [], "c": ["-D__ASSERT_MSG", "-std=gnu99"], "cxx": ["-fno-rtti", "-std=gnu++98"], diff --git a/tools/profiles/develop.json b/tools/profiles/develop.json index 1006de70a8..c9a15a6a1e 100644 --- a/tools/profiles/develop.json +++ b/tools/profiles/develop.json @@ -18,7 +18,8 @@ "common": ["-c", "--target=arm-arm-none-eabi", "-mthumb", "-Os", "-Wno-armcc-pragma-push-pop", "-Wno-armcc-pragma-anon-unions", "-DMULADDC_CANNOT_USE_R7", "-fdata-sections", - "-fno-exceptions", "-MMD", "-D_LIBCPP_EXTERN_TEMPLATE(...)="], + "-fno-exceptions", "-MMD", "-D_LIBCPP_EXTERN_TEMPLATE(...)=", + "-fshort-enums", "-fshort-wchar"], "asm": [], "c": ["-D__ASSERT_MSG", "-std=gnu99"], "cxx": ["-fno-rtti", "-std=gnu++98"], diff --git a/tools/profiles/release.json b/tools/profiles/release.json index e0c36c979e..f17d2de426 100644 --- a/tools/profiles/release.json +++ b/tools/profiles/release.json @@ -18,7 +18,8 @@ "common": ["-c", "--target=arm-arm-none-eabi", "-mthumb", "-Oz", "-Wno-armcc-pragma-push-pop", "-Wno-armcc-pragma-anon-unions", "-DMULADDC_CANNOT_USE_R7", "-fdata-sections", - "-fno-exceptions", "-MMD", "-D_LIBCPP_EXTERN_TEMPLATE(...)="], + "-fno-exceptions", "-MMD", "-D_LIBCPP_EXTERN_TEMPLATE(...)=", + "-fshort-enums", "-fshort-wchar"], "asm": [], "c": ["-D__ASSERT_MSG", "-std=gnu99"], "cxx": ["-fno-rtti", "-std=gnu++98"],