Closed Faless closed 2 months ago
Cherry-picked for 4.3 in PR https://github.com/godotengine/godot-cpp/pull/1569
Cherry-picked for 4.2 in PR https://github.com/godotengine/godot-cpp/pull/1570
Cherry-picked for 4.1 in PR https://github.com/godotengine/godot-cpp/pull/1572
Was using CPPFLAGS, but should use the explicit scons CCFLAGS which makes it clear they are applied to both the C and C++ compiler.
CPPFLAGS was also fine (they are preprocessor flags, also applied to both C and C++), but we should try to stay consistent with what we do in Godot.