nixpkgs/pkgs/build-support/cc-wrapper
John Ericson 0f0383394d cc-wrapper: Salt environment variables with LLVM triples
We now (on cross) require per-target flag interposition by putting the
triple in the names of the relevant environment variables, e.g:

export NIX_arm_unknown_linux_gnu_CFLAGS_COMPILE=...

The wrapper also has a `infixSalt` attribute (and "_" prefixed and
suffixed variants) to assist downstream packages.

Note how that the dashes are replaced to keep the identifier valid.
Using names like this allows us to keep the settings for different
compilers seperate.

I think it might be even better to use names like `NIX_{BUILD,HOST}...`
using the platform's role rather than the platform itself, but this
would be more work as the previous stages' tools would have to be re-
wrapped to take on their new role. I therefore didn't do this for now,
but that route should be thoroughly explored in the future.
2017-06-22 17:52:28 -04:00
..
add-flags.sh cc-wrapper: add-{flags,hardening} -> add-{flags,hardening}.sh 2016-08-23 15:27:51 +00:00
add-hardening.sh cc-wrapper: fix detection of unsupported linker flags 2016-08-24 10:59:52 +02:00
cc-wrapper.sh Merge branch 'response-files' of git://github.com/corngood/nixpkgs into staging 2016-10-31 10:07:30 -04:00
default.nix cc-wrapper: Salt environment variables with LLVM triples 2017-06-22 17:52:28 -04:00
gnat-wrapper.sh Merge branch 'master' into closure-size 2016-04-01 10:06:01 +02:00
gnatlink-wrapper.sh rename gcc-wrapper to cc-wrapper. 2015-01-14 20:26:56 -08:00
ld-solaris-wrapper.sh Replace hard coded /bin/bash occurrences 2016-10-04 20:15:37 +02:00
ld-wrapper.sh Merge branch 'response-files' of git://github.com/corngood/nixpkgs into staging 2016-10-31 10:07:30 -04:00
setup-hook.sh Merge branch 'master' into closure-size 2016-04-01 10:06:01 +02:00
utils.sh Fix parsing @args.rsp compiler arguments 2017-04-25 13:29:43 +00:00