Merge pull request #109786 from Repiteo/scons/metal-gnu++20

SCons: Use gnu++20 in metal driver
This commit is contained in:
Thaddeus Crews 2025-08-20 12:07:16 -05:00
commit 4012392cd6
No known key found for this signature in database
GPG key ID: 8C6E5FEB5FC03CCC

View file

@ -36,7 +36,7 @@ env_metal.drivers_sources += thirdparty_obj
# Enable C++20 for the Objective-C++ Metal code, which uses C++20 concepts.
if "-std=gnu++17" in env_metal["CXXFLAGS"]:
env_metal["CXXFLAGS"].remove("-std=gnu++17")
env_metal.Append(CXXFLAGS=["-std=c++20"])
env_metal.Append(CXXFLAGS=["-std=gnu++20"])
# Enable module support
env_metal.Append(CCFLAGS=["-fmodules", "-fcxx-modules"])