about summary refs log tree commit diff
path: root/pkgs/development/tools/build-managers
diff options
context:
space:
mode:
authorDaiderd Jordan <daiderd@gmail.com>2020-01-14 12:43:54 +0100
committerDaiderd Jordan <daiderd@gmail.com>2020-01-31 21:52:13 +0100
commit68513e40711cd942144a1da9c9e434b378c2c762 (patch)
tree6b22b95196617d7cbdaf2684769ba9fca1a1be8e /pkgs/development/tools/build-managers
parentb984c227d28c0af7b1afaace0c2ad107d94757f6 (diff)
downloadnixlib-68513e40711cd942144a1da9c9e434b378c2c762.tar
nixlib-68513e40711cd942144a1da9c9e434b378c2c762.tar.gz
nixlib-68513e40711cd942144a1da9c9e434b378c2c762.tar.bz2
nixlib-68513e40711cd942144a1da9c9e434b378c2c762.tar.lz
nixlib-68513e40711cd942144a1da9c9e434b378c2c762.tar.xz
nixlib-68513e40711cd942144a1da9c9e434b378c2c762.tar.zst
nixlib-68513e40711cd942144a1da9c9e434b378c2c762.zip
cmake: move CMAKE_OSX_ARCHITECTURES out of the stdenv
This was initially introduced in 92188d9d1751892ddbf8913da73dfc150d18fadb,
not clear how relevant this still is but i686 isn't supported anymore so
disable it explicitly.
Diffstat (limited to 'pkgs/development/tools/build-managers')
-rwxr-xr-xpkgs/development/tools/build-managers/cmake/setup-hook.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/pkgs/development/tools/build-managers/cmake/setup-hook.sh b/pkgs/development/tools/build-managers/cmake/setup-hook.sh
index 5479067d637e..87bbefa6bbfa 100755
--- a/pkgs/development/tools/build-managers/cmake/setup-hook.sh
+++ b/pkgs/development/tools/build-managers/cmake/setup-hook.sh
@@ -50,6 +50,9 @@ cmakeConfigurePhase() {
     # because we usually do not package the framework
     cmakeFlags="-DCMAKE_FIND_FRAMEWORK=last $cmakeFlags"
 
+    # on macOS i686 was only relevant for 10.5 or earlier.
+    cmakeFlags="-DCMAKE_OSX_ARCHITECTURES=x86_64 $cmakeFlags"
+
     # we never want to use the global macOS SDK
     cmakeFlags="-DCMAKE_OSX_SYSROOT= $cmakeFlags"