diff options
| author | autoantwort <41973254+autoantwort@users.noreply.github.com> | 2021-03-22 23:40:23 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-03-22 15:40:23 -0700 |
| commit | 749763277385710c4514d7bcc4609c08e2fbe37c (patch) | |
| tree | 421e88047ade015a5a028ab63a4acf2f7f8436b1 /scripts | |
| parent | 40027831fd3c785b1a7e9c94bdb1248702bc8f24 (diff) | |
| download | vcpkg-749763277385710c4514d7bcc4609c08e2fbe37c.tar.gz vcpkg-749763277385710c4514d7bcc4609c08e2fbe37c.zip | |
[scripts] vcpkg_configure_make: do not set --build on macOS (#16596)
* [scripts] vcpkg_configure_make: do not set --build on macOS
* [scripts] vcpkg_configure_make: do not set --host on macOS
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/cmake/vcpkg_configure_make.cmake | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/scripts/cmake/vcpkg_configure_make.cmake b/scripts/cmake/vcpkg_configure_make.cmake index c30de38bd..95c1fb322 100644 --- a/scripts/cmake/vcpkg_configure_make.cmake +++ b/scripts/cmake/vcpkg_configure_make.cmake @@ -437,10 +437,8 @@ function(vcpkg_configure_make) # --target: the machine that CC will produce binaries for
# https://stackoverflow.com/questions/21990021/how-to-determine-host-value-for-configure-when-using-cross-compiler
# Only for ports using autotools so we can assume that they follow the common conventions for build/target/host
- set(_csc_BUILD_TRIPLET "--build=${BUILD_ARCH}-apple-darwin")
if(NOT "${TARGET_ARCH}" STREQUAL "${BUILD_ARCH}") # we don't need to specify the additional flags if we build natively.
-
- list(APPEND _csc_BUILD_TRIPLET "--host=${TARGET_ARCH}-apple-darwin") # (Host activates crosscompilation; The name given here is just the prefix of the host tools for the target)
+ set(_csc_BUILD_TRIPLET "--host=${TARGET_ARCH}-apple-darwin") # (Host activates crosscompilation; The name given here is just the prefix of the host tools for the target)
endif()
debug_message("Using make triplet: ${_csc_BUILD_TRIPLET}")
endif()
|
