summary refs log tree commit diff
path: root/pkgs/build-support/cc-wrapper/gnat-wrapper.sh
Commit message (Collapse)AuthorAge
* Merge branch 'master' into closure-sizeVladimír Čunát2016-04-01
|\ | | | | | | | | Beware that stdenv doesn't build. It seems something more will be needed than just resolution of merge conflicts.
| * cc-wrapper: use Bash arrays properlyNikolay Amiantov2016-03-24
| |
| * cc-wrapper: add option to skip flags for native optimizationsNikolay Amiantov2016-03-24
| |
* | cc-wrapper: fixup branch interactionsVladimír Čunát2016-02-03
|/ | | | c0599fdd61c and changes on closure-size didn't go well together.
* cc-wrapper: quote when saving $PATHVladimír Čunát2016-01-25
|
* cc-wrapper: fix on darwinAnthony Cowley2016-01-19
| | | | | | | | | | | | | | | | | | | | | | | | | | | The ld-wrapper.sh script calls `readlink` in some circumstances. We need to ensure that this is the `readlink` from the `coreutils` package so that flag support is as expected. This is accomplished by explicitly setting PATH at the top of each shell script. Without doing this, the following happens with a trivial `main.c`: ``` nix-env -f "<nixpkgs>" -iA pkgs.clang $ clang main.c -L /nix/../nix/store/2ankvagznq062x1gifpxwkk7fp3xwy63-xnu-2422.115.4/Library -o a.out readlink: illegal option -- f usage: readlink [-n] [file ...] ``` The key element is the `..` in the path supplied to the linker via a `-L` flag. With this patch, the above invocation works correctly on darwin, whose native `/usr/bin/readlink` does not support the `-f` flag. The explicit path also ensures that the `grep` called by `cc-wrapper.sh` is the one from Nix. Fixes #6447
* rename gcc-wrapper to cc-wrapper.Eric Seidel2015-01-14
also makes cc-wrapper compatible with clang in the darwin fork.