From 9a1b4245fa13a31049a35aa164fb5d54dbba792d Mon Sep 17 00:00:00 2001 From: Thad House Date: Sat, 7 Dec 2024 18:55:06 -0800 Subject: [PATCH] [build] Restore Windows constexpr mutex define on wpiutil (#7515) --- wpiutil/build.gradle | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/wpiutil/build.gradle b/wpiutil/build.gradle index 5191e17e56e..9846a49cc70 100644 --- a/wpiutil/build.gradle +++ b/wpiutil/build.gradle @@ -184,6 +184,12 @@ nativeUtils.exportsConfigs { } } +nativeUtils.platformConfigs.each { + if (it.name.contains('windows')) { + it.cppCompiler.args.add("/D_DISABLE_CONSTEXPR_MUTEX_CONSTRUCTOR") + } +} + cppHeadersZip { def thirdpartyIncDirs = [ 'src/main/native/thirdparty/argparse/include',