@@ -912,7 +912,7 @@ OTHER_LIBS = -lsomeplatformlib
912
912
913
913
Controls, * exclusively* , which C standard is to be used for compilation.
914
914
915
- Defaults to ` undefined ` on 1.0.x or ` -std=gnu11 -flto -fno-fat-lto-objects ` on 1.5+ or if you install AVR toolchain > 4.9.0
915
+ Defaults to ` undefined ` on 1.0.x or ` -std=gnu11 ` on 1.5+ or if you install AVR toolchain > 4.9.0
916
916
917
917
Possible values:
918
918
@@ -927,14 +927,14 @@ Possible values:
927
927
* `-std=c11`
928
928
* `-std=gnu89`
929
929
* `-std=gnu99`
930
- * `-std=gnu11 -flto -fno-fat-lto-objects ` - This is the default for C code
930
+ * `-std=gnu11` - This is the default for C code
931
931
932
932
For more information, please refer to the [ Options Controlling C Dialect] ( https://gcc.gnu.org/onlinedocs/gcc/C-Dialect-Options.html )
933
933
934
934
** Example:**
935
935
936
936
``` Makefile
937
- CFLAGS_STD = = -std=gnu89
937
+ CFLAGS_STD = -std=gnu89
938
938
```
939
939
940
940
** Requirement:** * Optional*
@@ -947,7 +947,7 @@ CFLAGS_STD = = -std=gnu89
947
947
948
948
Controls, * exclusively* , which C++ standard is to be used for compilation.
949
949
950
- Defaults to ` undefined ` on 1.0 or ` -std=gnu++11 -fno-threadsafe-statics -flto ` on AVR toolchain > 4.9.0 (e.g. IDE 1.6.10+)
950
+ Defaults to ` undefined ` on 1.0 or ` -std=gnu++11 ` on AVR toolchain > 4.9.0 (e.g. IDE 1.6.10+)
951
951
952
952
Possible values:
953
953
@@ -964,7 +964,7 @@ Possible values:
964
964
* `-std=c++1y`
965
965
* `-std=c++14`
966
966
* `-std=gnu++98`
967
- * `-std=gnu++11 -fno-threadsafe-statics -flto ` - This is the default for C++ code
967
+ * `-std=gnu++11` - This is the default for C++ code
968
968
* `-std=gnu++1y`
969
969
* `-std=gnu++14`
970
970
@@ -973,7 +973,7 @@ For more information, please refer to the [Options Controlling C Dialect](https:
973
973
** Example:**
974
974
975
975
``` Makefile
976
- CXXFLAGS_STD = = -std=gnu++98
976
+ CXXFLAGS_STD = -std=gnu++98
977
977
```
978
978
979
979
** Requirement:** * Optional*
@@ -987,7 +987,7 @@ CXXFLAGS_STD = = -std=gnu++98
987
987
Flags passed to compiler for files compiled as C. Add more flags to this
988
988
variable using ` += ` .
989
989
990
- Defaults to all flags required for a typical build.
990
+ Defaults to ` undefined ` on 1.0 or ` -flto -fno-fat-lto-objects -fdiagnostics-color ` on AVR toolchain > 4.9.0 (e.g. IDE 1.6.10+)
991
991
992
992
** Example:**
993
993
@@ -1006,7 +1006,9 @@ CFLAGS += -my-c-only-flag
1006
1006
Flags passed to the compiler for files compiled as C++. Add more flags to this
1007
1007
variable using ` += ` .
1008
1008
1009
- Defaults to ` -fpermissive -fno-exceptions `
1009
+ Defaults to ` -fpermissive -fno-exceptions ` on 1.0
1010
+ or ` -fpermissive -fno-exceptions -fno-threadsafe-statics -flto -fno-devirtualize -fdiagnostics-color `
1011
+ on AVR toolchain > 4.9.0 (e.g. IDE 1.6.10+)
1010
1012
1011
1013
** Example:**
1012
1014
0 commit comments