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