gecko-dev/build/cargo-host-linker
Mike Hommey 693f013ade Bug 1916426 - Pass our LDFLAGS last to the linker command line cargo invokes r=firefox-build-system-reviewers,sergesanspaille
See https://github.com/llvm/llvm-project/issues/107365#issuecomment-2362516002
for an example of how things can go wrong when they are passed first.

I don't think there was a specific reason for them to have been put
first in the first place.

Differential Revision: https://phabricator.services.mozilla.com/D222899
2024-09-20 06:56:25 +00:00

4 lines
110 B
Bash
Executable File

#!/bin/sh
# See comment in cargo-linker.
eval ${MOZ_CARGO_WRAP_HOST_LD} '"$@"' ${MOZ_CARGO_WRAP_HOST_LDFLAGS}