|
@@ -3,13 +3,16 @@
|
3
|
3
|
# Convenience script to apply customizations to CPP flags
|
4
|
4
|
#
|
5
|
5
|
Import("env")
|
6
|
|
-env.Append(CXXFLAGS=[
|
7
|
|
- "-Wno-register"
|
|
6
|
+
|
|
7
|
+cxxflags = [
|
8
|
8
|
#"-Wno-incompatible-pointer-types",
|
9
|
9
|
#"-Wno-unused-const-variable",
|
10
|
10
|
#"-Wno-maybe-uninitialized",
|
11
|
11
|
#"-Wno-sign-compare"
|
12
|
|
-])
|
|
12
|
+]
|
|
13
|
+if "teensy" not in env['PIOENV']:
|
|
14
|
+ cxxflags += ["-Wno-register"]
|
|
15
|
+env.Append(CXXFLAGS=cxxflags)
|
13
|
16
|
|
14
|
17
|
#
|
15
|
18
|
# Add CPU frequency as a compile time constant instead of a runtime variable
|