Skip to content

Commit

Permalink
Add libdispatch WoA detection until merged
Browse files Browse the repository at this point in the history
  • Loading branch information
hmelder authored and triplef committed Dec 28, 2023
1 parent a760f73 commit 13d1ec6
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions patches/libdispatch-fix-woa-detection.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
https://github.com/apple/swift-corelibs-libdispatch/pull/803
---
diff --git a/cmake/modules/DispatchWindowsSupport.cmake b/cmake/modules/DispatchWindowsSupport.cmake
index 87675a7..750b3be 100644
--- a/cmake/modules/DispatchWindowsSupport.cmake
+++ b/cmake/modules/DispatchWindowsSupport.cmake
@@ -6,7 +6,7 @@ function(dispatch_windows_arch_spelling arch var)
set(${var} x64 PARENT_SCOPE)
elseif(${arch} STREQUAL armv7)
set(${var} arm PARENT_SCOPE)
- elseif(${arch} STREQUAL aarch64)
+ elseif(${arch} STREQUAL aarch64 OR ${arch} STREQUAL ARM64)
set(${var} arm64 PARENT_SCOPE)
else()
message(FATAL_ERROR "do not know MSVC spelling for ARCH: `${arch}`")

0 comments on commit 13d1ec6

Please sign in to comment.