Skip to content

Commit 9a1b424

Browse files
authored
[build] Restore Windows constexpr mutex define on wpiutil (#7515)
1 parent e222efa commit 9a1b424

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Diff for: wpiutil/build.gradle

+6
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,12 @@ nativeUtils.exportsConfigs {
184184
}
185185
}
186186

187+
nativeUtils.platformConfigs.each {
188+
if (it.name.contains('windows')) {
189+
it.cppCompiler.args.add("/D_DISABLE_CONSTEXPR_MUTEX_CONSTRUCTOR")
190+
}
191+
}
192+
187193
cppHeadersZip {
188194
def thirdpartyIncDirs = [
189195
'src/main/native/thirdparty/argparse/include',

0 commit comments

Comments
 (0)