scripts: Support autoconf cross compilation for *BSD and Solaris (#49438)

This commit is contained in:
CQ_Undefine 2026-01-28 10:17:21 +01:00 committed by GitHub
parent 9c6667d6a7
commit 5d2b8a6efd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -391,8 +391,8 @@ function(vcpkg_configure_make)
endif()
endif()
# Linux - cross-compiling support
if(VCPKG_TARGET_IS_LINUX)
# Linux / BSD / Solaris - cross-compiling support
if(VCPKG_TARGET_IS_LINUX OR VCPKG_TARGET_IS_BSD OR VCPKG_TARGET_IS_SOLARIS)
if (requires_autoconfig AND NOT arg_BUILD_TRIPLET OR arg_DETERMINE_BUILD_TRIPLET)
# The regex below takes the prefix from the resulting CMAKE_C_COMPILER variable eg. arm-linux-gnueabihf-gcc
# set in the common toolchains/linux.cmake