Skip to content

Commit

Permalink
create msys directory if it doesn't exists before copying
Browse files Browse the repository at this point in the history
  • Loading branch information
nam20485 committed Oct 17, 2023
1 parent 3cbbfa6 commit 075128f
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion scripts/patch-vcpkg-install.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,10 @@
# see vcpkg GitHub issue #33506 and comment with workaround:
# https://github.com/microsoft/vcpkg/issues/33506#issuecomment-1704949644

Copy-Item -Force -Verbose scripts\patch\compile_wrapper_consider_clang-cl.patch "$env:VCPKG_ROOT\scripts\msys\compile_wrapper_consider_clang-cl.patch"
$msys_path = "$env:VCPKG_ROOT\scripts\msys"
If (!(Test-Path -PathType container $msys_path))
{
New-Item -ItemType Directory -Path $msys_path -Verbose
}

Copy-Item -Force -Verbose scripts\patch\compile_wrapper_consider_clang-cl.patch "$msys_path\compile_wrapper_consider_clang-cl.patch"

0 comments on commit 075128f

Please sign in to comment.