
Eventually we might want to start using the FPU, but the easy option right now is to simply disable it everywhere. Previously, it depended on whether Clang was built as part of TinyGo or it was an external binary. By setting the floating point mode explicitly, such inconsistencies are avoided. This commit creates a new cortex-m4 target which can be the central place for setting FPU-related settings across all Cortex-M4 chips.
8 строки
137 Б
JSON
8 строки
137 Б
JSON
{
|
|
"inherits": ["cortex-m"],
|
|
"llvm-target": "armv7em-none-eabi",
|
|
"cflags": [
|
|
"--target=armv7em-none-eabi",
|
|
"-mfloat-abi=soft"
|
|
]
|
|
}
|