Page MenuHomePhabricator

[secp256k1] build: Remove #undef hack for ASM in the precomputation programs
ClosedPublic

Authored by PiRK on Jan 19 2026, 10:24.

Details

Summary

This was necessary because we used to cross-compile the library but
compile the precomputation programs for the build host. Now it's no
longer necessary and we can cleanly link even the external ASM
(which was the intent of #935).

On the way, remove an obsolete "-I" parameter.

This is a partial backport of secp256k1#988
https://github.com/bitcoin-core/secp256k1/pull/988/commits/7dfceceea692c4118829c06128c41623b2373ac2

Depends on D19401

Test Plan

delete the pregenerated headers, then
ninja sepc256k1

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

PiRK retitled this revision from build: Remove #undef hack for ASM in the precomputation programs to [secp256k1] build: Remove #undef hack for ASM in the precomputation programs.Jan 19 2026, 10:24
PiRK published this revision for review.Jan 19 2026, 13:36
This revision is now accepted and ready to land.Jan 19 2026, 14:02