mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-26 01:51:41 +00:00
[build] Enable Zc:__cplusplus for Windows (#3625)
This makes the version actually be correct.
This commit is contained in:
@@ -27,8 +27,11 @@ nativeUtils.setSinglePrintPerPlatform()
|
||||
nativeUtils.enableSourceLink()
|
||||
|
||||
nativeUtils.platformConfigs.each {
|
||||
if (it.name.contains('windows')) return
|
||||
it.linker.args << '-Wl,-rpath,\'$ORIGIN\''
|
||||
if (it.name.contains('windows')) {
|
||||
it.cppCompiler.args.add("/Zc:__cplusplus")
|
||||
return
|
||||
}
|
||||
it.linker.args << '-Wl,-rpath,\'$ORIGIN\''
|
||||
if (it.name == 'osxx86-64') {
|
||||
it.linker.args << "-headerpad_max_install_names"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user