Skip to content

Commit

Permalink
Fix conda failure for onnxruntime-directml (#21526)
Browse files Browse the repository at this point in the history
The change in #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.
  • Loading branch information
maggie1059 authored Jul 27, 2024
1 parent d01fc75 commit 10b4a3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/ci_build/github/windows/install_third_party_deps.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ $Env:CMAKE_PREFIX_PATH = "$install_prefix"
New-Item -Path "$install_prefix" -ItemType Directory -Force

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

if ($use_cache) {
Expand Down

0 comments on commit 10b4a3b

Please sign in to comment.