Page MenuHomePhabricator

[cmake] Don't select an alternative linker for the native build
ClosedPublic

Authored by Fabien on Mar 24 2023, 08:38.

Details

Summary

This non-default linker selection (either gold or lld) is not enforced during cross compilation, and can be easily overriden for standard build.
However there is an exception to this rule: during cross-compilation, the automatic selection applies for the native (host) builds. If the host has no gold/lld installed this could cause the native build to fail.

Test Plan
ninja

Run a cross build.

Diff Detail

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