File tree Expand file tree Collapse file tree 1 file changed +25
-5
lines changed Expand file tree Collapse file tree 1 file changed +25
-5
lines changed Original file line number Diff line number Diff line change @@ -299,15 +299,35 @@ JOBS="-j$JOBS"
299
299
# assume compiler is GHC
300
300
RUNHASKELL=$( echo " $HC " | sed -E ' s/ghc(-[0-9.]*)$/runghc\1/' )
301
301
302
- case " $( uname) " in
302
+ ARCH=$( uname -m)
303
+
304
+ case " $ARCH " in
305
+ arm64)
306
+ ARCH=aarch64
307
+ ;;
308
+ x86_64)
309
+ ARCH=x86_64
310
+ ;;
311
+ * )
312
+ echo " Warning: Unknown architecture '$ARCH '"
313
+ ;;
314
+ esac
315
+
316
+ OS=$( uname)
317
+
318
+ case " $OS " in
303
319
MINGW64* )
304
- ARCH=" x86_64-windows"
320
+ ARCH=" $ARCH -windows"
321
+ ;;
322
+ Linux)
323
+ ARCH=" $ARCH -linux"
305
324
;;
306
- Linux )
307
- ARCH=" x86_64-linux "
325
+ Darwin )
326
+ ARCH=" $ARCH -osx "
308
327
;;
309
328
* )
310
- ARCH=" x86_64-osx"
329
+ echo " Warning: Unknown operating system '$OS '"
330
+ ARCH=" $ARCH -$OS "
311
331
;;
312
332
esac
313
333
You can’t perform that action at this time.
0 commit comments