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