Skip to content

Commit 10b4a3b

Browse files
authored
Fix conda failure for onnxruntime-directml (microsoft#21526)
The change in microsoft#21005 works for directly building wheels with `build.py`, but ort-nightly-directml wheels, as well as the 1.18.1 release of the onnxruntime-directml python wheel, still do not work with conda since they're built from the `py-win-gpu.yml` pipeline, which uses `install_third_party_deps.ps1` to set compile flags.
1 parent d01fc75 commit 10b4a3b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/ci_build/github/windows/install_third_party_deps.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ $Env:CMAKE_PREFIX_PATH = "$install_prefix"
2727
New-Item -Path "$install_prefix" -ItemType Directory -Force
2828

2929
# Setup compile flags
30-
$compile_flags = @('/MP', '/guard:cf', '/DWIN32', '/D_WINDOWS', '/DWINVER=0x0A00', '/D_WIN32_WINNT=0x0A00', '/DNTDDI_VERSION=0x0A000000', '/W3')
30+
$compile_flags = @('/MP', '/guard:cf', '/DWIN32', '/D_WINDOWS', '/D_DISABLE_CONSTEXPR_MUTEX_CONSTRUCTOR', '/DWINVER=0x0A00', '/D_WIN32_WINNT=0x0A00', '/DNTDDI_VERSION=0x0A000000', '/W3')
3131
$linker_flags=@('/guard:cf')
3232

3333
if ($use_cache) {

0 commit comments

Comments
 (0)