summaryrefslogtreecommitdiff
path: root/.gitlab/darwin/toolchain.nix
diff options
context:
space:
mode:
authorMatthew Pickering <matthewtpickering@gmail.com>2023-01-06 13:09:51 +0000
committerMarge Bot <ben+marge-bot@smart-cactus.org>2023-01-06 22:08:53 -0500
commit0db496ff1e372b19429fee91a4a569f7021fe1d7 (patch)
tree674e5871dc500a97da1425c7fc059a944b4ebdb1 /.gitlab/darwin/toolchain.nix
parentc306d939d2e1b08cbe683bb9829a4b4010948010 (diff)
downloadhaskell-0db496ff1e372b19429fee91a4a569f7021fe1d7.tar.gz
darwin ci: Explicitly pass desired build triple to configure
On the zw3rk machines for some reason the build machine was inferred to be arm64. Setting the build triple appropiately resolve this confusion and we produce x86 binaries.
Diffstat (limited to '.gitlab/darwin/toolchain.nix')
-rw-r--r--.gitlab/darwin/toolchain.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/.gitlab/darwin/toolchain.nix b/.gitlab/darwin/toolchain.nix
index ba5b21786c..11844f31da 100644
--- a/.gitlab/darwin/toolchain.nix
+++ b/.gitlab/darwin/toolchain.nix
@@ -113,6 +113,6 @@ pkgs.writeTextFile {
export CABAL="$CABAL_INSTALL"
sdk_path="$(xcrun --sdk macosx --show-sdk-path)"
- export CONFIGURE_ARGS="$CONFIGURE_ARGS --with-ffi-libraries=$sdk_path/usr/lib --with-ffi-includes=$sdk_path/usr/include/ffi"
+ export CONFIGURE_ARGS="$CONFIGURE_ARGS --with-ffi-libraries=$sdk_path/usr/lib --with-ffi-includes=$sdk_path/usr/include/ffi --build=${targetTriple}"
'';
}