aboutsummaryrefslogtreecommitdiff
path: root/arduino-mk-vars.md
diff options
context:
space:
mode:
authorSimon John <git@the-jedi.co.uk>2017-09-03 16:02:21 +0100
committerGitHub <noreply@github.com>2017-09-03 16:02:21 +0100
commit983db51764265435b007b69cea6d8a25075c83c0 (patch)
tree420a89e58715d7bffff1d0ca5de906705c0c2070 /arduino-mk-vars.md
parent5fcd04cdef9b8378fe0a9cafe426321a62d9bdbd (diff)
parentfa82c3a9dbad998fd391dc9c2c4ca913744cc26d (diff)
Merge pull request #524 from sej7278/master
Moved the LTO etc. flags from CXXFLAGS_STD to CXXFLAGS
Diffstat (limited to 'arduino-mk-vars.md')
-rw-r--r--arduino-mk-vars.md18
1 files changed, 10 insertions, 8 deletions
diff --git a/arduino-mk-vars.md b/arduino-mk-vars.md
index 0df7a11..0f93c89 100644
--- a/arduino-mk-vars.md
+++ b/arduino-mk-vars.md
@@ -912,7 +912,7 @@ OTHER_LIBS = -lsomeplatformlib
Controls, *exclusively*, which C standard is to be used for compilation.
-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
+Defaults to `undefined` on 1.0.x or `-std=gnu11` on 1.5+ or if you install AVR toolchain > 4.9.0
Possible values:
@@ -927,14 +927,14 @@ Possible values:
* `-std=c11`
* `-std=gnu89`
* `-std=gnu99`
- * `-std=gnu11 -flto -fno-fat-lto-objects` - This is the default for C code
+ * `-std=gnu11` - This is the default for C code
For more information, please refer to the [Options Controlling C Dialect](https://gcc.gnu.org/onlinedocs/gcc/C-Dialect-Options.html)
**Example:**
```Makefile
-CFLAGS_STD = = -std=gnu89
+CFLAGS_STD = -std=gnu89
```
**Requirement:** *Optional*
@@ -947,7 +947,7 @@ CFLAGS_STD = = -std=gnu89
Controls, *exclusively*, which C++ standard is to be used for compilation.
-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+)
+Defaults to `undefined` on 1.0 or `-std=gnu++11` on AVR toolchain > 4.9.0 (e.g. IDE 1.6.10+)
Possible values:
@@ -964,7 +964,7 @@ Possible values:
* `-std=c++1y`
* `-std=c++14`
* `-std=gnu++98`
- * `-std=gnu++11 -fno-threadsafe-statics -flto` - This is the default for C++ code
+ * `-std=gnu++11` - This is the default for C++ code
* `-std=gnu++1y`
* `-std=gnu++14`
@@ -973,7 +973,7 @@ For more information, please refer to the [Options Controlling C Dialect](https:
**Example:**
```Makefile
-CXXFLAGS_STD = = -std=gnu++98
+CXXFLAGS_STD = -std=gnu++98
```
**Requirement:** *Optional*
@@ -987,7 +987,7 @@ CXXFLAGS_STD = = -std=gnu++98
Flags passed to compiler for files compiled as C. Add more flags to this
variable using `+=`.
-Defaults to all flags required for a typical build.
+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+)
**Example:**
@@ -1006,7 +1006,9 @@ CFLAGS += -my-c-only-flag
Flags passed to the compiler for files compiled as C++. Add more flags to this
variable using `+=`.
-Defaults to `-fpermissive -fno-exceptions`
+Defaults to `-fpermissive -fno-exceptions` on 1.0
+or `-fpermissive -fno-exceptions -fno-threadsafe-statics -flto -fno-devirtualize -fdiagnostics-color`
+on AVR toolchain > 4.9.0 (e.g. IDE 1.6.10+)
**Example:**