apply_cplusplus_flags.py 344 B

1234567
  1. # Adds the C++-only compiler flags to the C++ flag list so C sources of the Arduino
  2. # core do not warn about options that do not apply to C.
  3. Import("env")
  4. env.Replace(CXXFLAGS=[flag for flag in env.get("CXXFLAGS", []) if flag != "-std=gnu++11"])
  5. env.Append(CXXFLAGS=["-std=gnu++17", "-fno-exceptions", "-fno-rtti", "-fno-threadsafe-statics"])