cmake: move CMAKE_OSX_ARCHITECTURES out of the stdenv
This was initially introduced in 92188d9d17
,
not clear how relevant this still is but i686 isn't supported anymore so
disable it explicitly.
This commit is contained in:
parent
b984c227d2
commit
68513e4071
2 changed files with 3 additions and 1 deletions
|
@ -50,6 +50,9 @@ cmakeConfigurePhase() {
|
||||||
# because we usually do not package the framework
|
# because we usually do not package the framework
|
||||||
cmakeFlags="-DCMAKE_FIND_FRAMEWORK=last $cmakeFlags"
|
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
|
# we never want to use the global macOS SDK
|
||||||
cmakeFlags="-DCMAKE_OSX_SYSROOT= $cmakeFlags"
|
cmakeFlags="-DCMAKE_OSX_SYSROOT= $cmakeFlags"
|
||||||
|
|
||||||
|
|
|
@ -34,7 +34,6 @@ in rec {
|
||||||
export NIX_ENFORCE_NO_NATIVE=''${NIX_ENFORCE_NO_NATIVE-1}
|
export NIX_ENFORCE_NO_NATIVE=''${NIX_ENFORCE_NO_NATIVE-1}
|
||||||
export NIX_ENFORCE_PURITY=''${NIX_ENFORCE_PURITY-1}
|
export NIX_ENFORCE_PURITY=''${NIX_ENFORCE_PURITY-1}
|
||||||
export NIX_IGNORE_LD_THROUGH_GCC=1
|
export NIX_IGNORE_LD_THROUGH_GCC=1
|
||||||
export CMAKE_OSX_ARCHITECTURES=x86_64
|
|
||||||
export SDKROOT=
|
export SDKROOT=
|
||||||
|
|
||||||
# Ensure consistent LC_VERSION_MIN_MACOSX and remove LC_UUID.
|
# Ensure consistent LC_VERSION_MIN_MACOSX and remove LC_UUID.
|
||||||
|
|
Loading…
Reference in a new issue