mirror of https://github.com/ARMmbed/mbed-os.git
64 lines
3.1 KiB
JSON
64 lines
3.1 KiB
JSON
{
|
|
"GCC_ARM": {
|
|
"common": ["-c", "-Wall", "-Wextra",
|
|
"-Wno-unused-parameter", "-Wno-missing-field-initializers",
|
|
"-fmessage-length=0", "-fno-exceptions",
|
|
"-ffunction-sections", "-fdata-sections", "-funsigned-char",
|
|
"-MMD", "-fno-delete-null-pointer-checks",
|
|
"-fomit-frame-pointer", "-Og", "-g3", "-DMBED_DEBUG",
|
|
"-DMBED_TRAP_ERRORS_ENABLED=1"],
|
|
"asm": ["-x", "assembler-with-cpp"],
|
|
"c": ["-std=gnu11"],
|
|
"cxx": ["-std=gnu++14", "-fno-rtti", "-Wvla"],
|
|
"ld": ["-Wl,--gc-sections", "-Wl,--wrap,main", "-Wl,--wrap,_malloc_r",
|
|
"-Wl,--wrap,_free_r", "-Wl,--wrap,_realloc_r", "-Wl,--wrap,_memalign_r",
|
|
"-Wl,--wrap,_calloc_r", "-Wl,--wrap,exit", "-Wl,--wrap,atexit",
|
|
"-Wl,-n"]
|
|
},
|
|
"ARMC6": {
|
|
"common": ["-c", "--target=arm-arm-none-eabi", "-mthumb", "-g", "-O1",
|
|
"-Wno-armcc-pragma-push-pop", "-Wno-armcc-pragma-anon-unions",
|
|
"-Wno-reserved-user-defined-literal", "-Wno-deprecated-register",
|
|
"-DMULADDC_CANNOT_USE_R7", "-fdata-sections",
|
|
"-fno-exceptions", "-MMD", "-D_LIBCPP_EXTERN_TEMPLATE(...)=",
|
|
"-fshort-enums", "-fshort-wchar", "-DMBED_DEBUG",
|
|
"-DMBED_TRAP_ERRORS_ENABLED=1"],
|
|
"asm": [],
|
|
"c": ["-D__ASSERT_MSG", "-std=gnu11"],
|
|
"cxx": ["-fno-rtti", "-std=gnu++14"],
|
|
"ld": ["--verbose", "--remove", "--show_full_path", "--legacyalign",
|
|
"--any_contingency", "--keep=os_cb_sections"]
|
|
},
|
|
"ARM": {
|
|
"common": ["-c", "--gnu", "-Ospace", "--split_sections",
|
|
"--apcs=interwork", "--brief_diagnostics", "--restrict",
|
|
"--multibyte_chars", "-O0", "-g", "-DMBED_DEBUG",
|
|
"-DMBED_TRAP_ERRORS_ENABLED=1"],
|
|
"asm": [],
|
|
"c": ["--md", "--no_depend_system_headers", "--c99", "-D__ASSERT_MSG"],
|
|
"cxx": ["--cpp11", "--no_rtti", "--no_vla"],
|
|
"ld": ["--show_full_path", "--any_contingency", "--keep=os_cb_sections"]
|
|
},
|
|
"uARM": {
|
|
"common": ["-c", "--gnu", "-Ospace", "--split_sections",
|
|
"--apcs=interwork", "--brief_diagnostics", "--restrict",
|
|
"--multibyte_chars", "-O0", "-D__MICROLIB", "-g",
|
|
"--library_type=microlib", "-DMBED_RTOS_SINGLE_THREAD", "-DMBED_DEBUG",
|
|
"-DMBED_TRAP_ERRORS_ENABLED=1"],
|
|
"asm": [],
|
|
"c": ["--md", "--no_depend_system_headers", "--c99", "-D__ASSERT_MSG"],
|
|
"cxx": ["--cpp11", "--no_rtti", "--no_vla"],
|
|
"ld": ["--library_type=microlib"]
|
|
},
|
|
"IAR": {
|
|
"common": [
|
|
"--no_wrap_diagnostics", "-e",
|
|
"--diag_suppress=Pa050,Pa084,Pa093,Pa082,Pe540", "-Ol", "-r", "-DMBED_DEBUG",
|
|
"-DMBED_TRAP_ERRORS_ENABLED=1", "--enable_restrict"],
|
|
"asm": [],
|
|
"c": ["--vla", "--diag_suppress=Pe546"],
|
|
"cxx": ["--guard_calls", "--no_static_destruction"],
|
|
"ld": ["--skip_dynamic_initialization", "--threaded_lib"]
|
|
}
|
|
}
|