forked from platformio/platformio-core
Add missing build flag to reduce code size for atmelsam // Resolve #599
This commit is contained in:
@ -95,6 +95,10 @@ else:
|
|||||||
)
|
)
|
||||||
|
|
||||||
env.Append(
|
env.Append(
|
||||||
|
CXXFLAGS=[
|
||||||
|
"-fno-threadsafe-statics"
|
||||||
|
],
|
||||||
|
|
||||||
CPPDEFINES=[
|
CPPDEFINES=[
|
||||||
"USBCON",
|
"USBCON",
|
||||||
'USB_MANUFACTURER="PlatformIO"'
|
'USB_MANUFACTURER="PlatformIO"'
|
||||||
@ -124,10 +128,6 @@ elif "zero" in env.subst("$BOARD"):
|
|||||||
"--param", "max-inline-insns-single=500"
|
"--param", "max-inline-insns-single=500"
|
||||||
],
|
],
|
||||||
|
|
||||||
CXXFLAGS=[
|
|
||||||
"-fno-threadsafe-statics"
|
|
||||||
],
|
|
||||||
|
|
||||||
LINKFLAGS=[
|
LINKFLAGS=[
|
||||||
"--specs=nosys.specs",
|
"--specs=nosys.specs",
|
||||||
"--specs=nano.specs"
|
"--specs=nano.specs"
|
||||||
|
Reference in New Issue
Block a user