ci: pass -d:disableMarchNative to avoid secp256k1 asm build failures

GitHub-hosted runners pick up host-specific CPU features via
'-march=native', which combined with '-Og -O3' (emitted when
--debugger:native and --opt:speed are both active) exhausts the
register constraints in secp256k1's scalar_4x64_impl.h inline
assembly and breaks the build with "asm operand has impossible
constraints".

Using the existing 'disableMarchNative' escape hatch in
config.nims falls back to '-mssse3' (or '-march=x86-64-v2' with
'-d:marchOptimized'), which keeps register allocation
predictable across the heterogeneous runner pool.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
Ivan FB 2026-05-28 15:49:52 +02:00
parent 74057c6622
commit daf6fb13c4
No known key found for this signature in database
GPG Key ID: DF0C67A04C543270

View File

@ -13,7 +13,7 @@ concurrency:
env:
NPROC: 2
MAKEFLAGS: "-j${NPROC}"
NIMFLAGS: "--parallelBuild:${NPROC} --colors:off -d:chronicles_colors:none"
NIMFLAGS: "--parallelBuild:${NPROC} --colors:off -d:chronicles_colors:none -d:disableMarchNative"
NIM_VERSION: '2.2.4'
NIMBLE_VERSION: '0.22.3'
@ -157,7 +157,7 @@ jobs:
fi
export MAKEFLAGS="-j1"
export NIMFLAGS="--colors:off -d:chronicles_colors:none"
export NIMFLAGS="--colors:off -d:chronicles_colors:none -d:disableMarchNative"
export USE_LIBBACKTRACE=0
make V=1 POSTGRES=$postgres_enabled test