This isn’t an issue right now (because the get_arch check is simple), but becomes one as soon as we want to use lld
for linking, and need LDFLAGS (otherwise we call ld
and fail, see it’s usage in #21778). So I’ve split this out for review. It also makes sense to use the same flags for all compilation in these checks.
Also drops some dead code in test-symbol-check.