mirror of
https://github.com/logos-messaging/logos-messaging-nim.git
synced 2026-04-17 01:03:26 +00:00
try to properly pass cpu in ci
This commit is contained in:
parent
2e4388136d
commit
b0fdfdbbd0
8
.github/workflows/ci.yml
vendored
8
.github/workflows/ci.yml
vendored
@ -188,8 +188,8 @@ jobs:
|
||||
NIM_PARAMS=""
|
||||
if [[ '${{ runner.os }}' == 'macOS' ]]; then
|
||||
case "$(uname -m)" in
|
||||
x86_64) NIM_PARAMS="--cpu:amd64" ;;
|
||||
arm64) NIM_PARAMS="--cpu:arm64" ;;
|
||||
x86_64) NIM_PARAMS="--cpu:amd64 -d:disableMarchNative" ;;
|
||||
arm64) NIM_PARAMS="--cpu:arm64 -d:disableMarchNative" ;;
|
||||
esac
|
||||
fi
|
||||
make V=1 QUICK_AND_DIRTY_COMPILER=1 NIM_PARAMS="${NIM_PARAMS}" USE_LIBBACKTRACE=0 all
|
||||
@ -345,8 +345,8 @@ jobs:
|
||||
NIM_PARAMS=""
|
||||
if [[ '${{ runner.os }}' == 'macOS' ]]; then
|
||||
case "$(uname -m)" in
|
||||
x86_64) NIM_PARAMS="--cpu:amd64" ;;
|
||||
arm64) NIM_PARAMS="--cpu:arm64" ;;
|
||||
x86_64) NIM_PARAMS="--cpu:amd64 -d:disableMarchNative" ;;
|
||||
arm64) NIM_PARAMS="--cpu:arm64 -d:disableMarchNative" ;;
|
||||
esac
|
||||
fi
|
||||
|
||||
|
||||
@ -54,7 +54,7 @@ if defined(disableMarchNative):
|
||||
elif defined(macosx) and defined(amd64):
|
||||
switch("passC", "-march=native")
|
||||
switch("passL", "-march=native")
|
||||
elif defined(macosx) and defined(arm64):
|
||||
elif defined(macosx) and defined(arm64) and not defined(disableMarchNative):
|
||||
# Apple's Clang can't handle "-march=native" on M1: https://github.com/status-im/nimbus-eth2/issues/2758
|
||||
switch("passC", "-mcpu=apple-m1")
|
||||
switch("passL", "-mcpu=apple-m1")
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user