mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-06-07 19:42:46 +08:00
vcpkg_configure_make: MacOS assume target arch is host arch (#18632)
This is to guard against MacOS triplets that don't list VCPKG_OSX_ARCHITECTURES
This commit is contained in:
parent
22a15e3995
commit
84b96cf7b3
@ -148,7 +148,9 @@ endmacro()
|
||||
|
||||
macro(_vcpkg_determine_autotools_target_arch_mac out_var)
|
||||
list(LENGTH VCPKG_OSX_ARCHITECTURES _num_osx_archs)
|
||||
if(_num_osx_archs GREATER_EQUAL 2)
|
||||
if(_num_osx_archs EQUAL 0)
|
||||
set(${out_var} "${VCPKG_DETECTED_CMAKE_HOST_SYSTEM_PROCESSOR}")
|
||||
elseif(_num_osx_archs GREATER_EQUAL 2)
|
||||
set(${out_var} "universal")
|
||||
else()
|
||||
# Better match the arch behavior of config.guess
|
||||
|
Loading…
Reference in New Issue
Block a user