summary refs log tree commit diff
path: root/pkgs/build-support/cc-wrapper
Commit message (Collapse)AuthorAge
* Merge remote-tracking branch 'upstream/staging' into compiler-rtJohn Ericson2018-05-24
|\
| * Merge remote-tracking branch 'upstream/staging' into strictDepsJohn Ericson2018-05-14
| |\
| | * Merge pull request #40139 from obsidiansystems/modular-setup-hooksJohn Ericson2018-05-07
| | |\ | | | | | | | | treewide: Modular setup hooks
| | | * {bintools,cc}-wrapper: Factor out role accumulation logicJohn Ericson2018-05-07
| | | |
| | | * treewide: Use pkgs/build-support/roles.bash to remove copy pastaJohn Ericson2018-05-07
| | | | | | | | | | | | | | | | | | | | Also fix some setup hooks that unnecessarily used environment hooks, which revolted in the same variable being modified too many times.
| | * | bintools-wrapper, cc-wrapper: don't add `targetPrefix` the second timeJan Malakhovski2018-04-26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | ... binutils and gcc add it already anyway. Without this it's easy to get cross-toolchain paths longer than 256 chars and nix-daemon will then fail to commit them to /nix/store on XFS.
| | * | {cc,bintools}-wrapper: fix removal of unsupported hardening flagsPiotr Bogdan2018-04-14
| | | |
| | * | Revert "Revert "Merge pull request #28029 from cstrahan/hardening-fix""John Ericson2018-04-11
| | | | | | | | | | | | | | | | | | | | This reverts commit 6c064e6b1f34a8416f990db0cc617a7195f71588, reapplying PR #28029 which was supposed to have gone to staging all along.
| * | | treewide: Get rid of all uses of crossConfigJohn Ericson2018-05-14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The hack of using `crossConfig` to enforce stricter handling of dependencies is replaced with a dedicated `strictDeps` for that purpose. (Experience has shown that my punning was a terrible idea that made more difficult and embarrising to teach teach.) Now that is is clear, a few packages now use `strictDeps`, to fix various bugs: - bintools-wrapper and cc-wrapper
* | | | tests.cc-wrapper: verify building with sanitizersBenjamin Saunders2018-05-24
| |_|/ |/| |
* | | Revert "Merge pull request #28029 from cstrahan/hardening-fix"Matthew Bauer2018-04-10
| | | | | | | | | | | | | | | | | | | | | This reverts commit 0dbc0067604eb9629d1458fcf2b226a88e728f14, reversing changes made to cb7f7742652acdf3086b3d132163b5ea2c2328eb. Should go into staging.
* | | Merge pull request #28029 from cstrahan/hardening-fixJohn Ericson2018-04-10
|\ \ \ | |_|/ |/| | hardening: fix #18995
| * | hardening: ReindentJohn Ericson2018-04-10
| | |
| * | hardening: Tiny reindentJohn Ericson2018-04-10
| | |
| * | hardening: line order, spacing, and pointless quoting for consistencyJohn Ericson2018-04-10
| | |
| * | hardenning: Rejigger ifs and explicit declare and unset -vJohn Ericson2018-04-10
| | |
| * | hardening: simplify reporting of disabled flagsCharles Strahan2018-04-10
| | |
| * | hardening: make requested fixesCharles Strahan2018-04-10
| | |
| * | hardening: ld wrapper changes, setup-hook, etcCharles Strahan2018-03-06
| | |
| * | hardening: initial cross supportCharles Strahan2018-03-06
| | |
| * | hardening: allow user supplied flags to overrideCharles Strahan2018-03-06
| | | | | | | | | | | | Put hardening flags before user supplied flags.
| * | hardening: clarify the whitelist logicCharles Strahan2018-03-06
| | | | | | | | | | | | | | | | | | | | | | | | Per @Ericson2314's suggestion [1], make it more clear that the active hardenings are decided via whitelist; the blacklist is merely for the debug messages. 1: https://github.com/NixOS/nixpkgs/pull/28029/commits/36d5ce41d4538e83199a000e6f849442c1cf959c#r133279731
| * | hardening: fix careless bugsCharles Strahan2018-03-06
| | | | | | | | | | | | | | | | | | | | | I got a substitution backwards (used '+' instead of '-'). Also, this now works under `set -u` (had to fix a couple unbound variable references).
| * | hardening: fix bug/typoCharles Strahan2018-03-06
| | |
| * | hardening: fix #18995Charles Strahan2018-03-06
| |/
| * Revert "Merge staging at '8d490ca9934d0' into master"Vladimír Čunát2018-02-26
| | | | | | | | | | | | This reverts commit fc232422201c0364dbd57826c9a137cc1239caea, reversing changes made to 754816b84b98afdc0727e13dd66e1698b097de6a. We don't have many binaries yet. Comment on the original merge commit.
* | treewide: Remove gnat support.Shea Levy2018-03-08
| | | | | | | | See discussion in https://github.com/NixOS/nixpkgs/commit/6ac7b19c978e951c124c5ea434c94f95f593888e.
* | Merge pull request #35071 from oxij/stdenv/infopagesJohn Ericson2018-02-26
|\ \ | |/ |/| stdenv, bash: fixing info pages and stuff
| * cc-wrapper: allow building without documentation, propagate info pagesJan Malakhovski2018-02-26
| |
* | cc-wrapper: fix bool handling for empty and zero valuesNikolay Amiantov2018-02-21
|/ | | | | | Before the code would fail silently for zero values and with some output for empties. We now currently handle both via defaulting value to zero and making `let` return success error code when there's no syntax error.
* Merge branch 'master' into stagingVladimír Čunát2017-12-31
|\ | | | | | | | | A few thousand rebuilds from master, again. Hydra: ?compare=1422362
| * cc-wrapper: allow compilers to specify unsupported hardening modesDmitry Kalinkin2017-12-30
| | | | | | | | Fixes: 0fd7ef61b2 ('clang_34: Disable hardening bits (#28543)')
* | stdenv-setup: Ease the transition with native buildsJohn Ericson2017-12-30
| | | | | | | | | | | | | | | | | | | | | | | | - All deps go on the PATH - CC and Bintools wrappers with their host != depender's host still get their setup hooks run. - Environment hooks get applied to all packages This isn't so elegent, but eases the transition on a very significant PR.
* | {bintools,cc}-wrapper: extraPackages should be `depsTargetTargetPropagated`John Ericson2017-12-30
| | | | | | | | | | They are libraries used by programs built with these tools, not used by the tools themselves.
* | {bintools,cc}-wrapper: Fix setup hook to respect the role of the cc-compilerJohn Ericson2017-12-30
|/ | | | | | | We now have the information to properly determine the role the cc-wrapper dependency has, by taking advantage of `offset`. No longer use the soon-to-be-deprecated crossConfig environment variable, the temp hack used before this change.
* Merge branch 'master' into stagingOrivej Desh2017-12-18
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * master: (125 commits) scummvm: fix eval tinycc: 0.9.27pre-20171016 -> 0.9.27 Update terraform provider versions vscode: 1.18.1 -> 1.19.0 linux: 4.14.6 -> 4.14.7 scummvm: 1.9.0 -> 2.0.0 cmst: 2017.03.18 -> 2017.09.19 albert: 0.14.7 -> 0.14.14 obs-studio: fix vlc plugin ffmpeg, ffmpeg-full: 3.4 -> 3.4.1 uchiwa: 0.26.3 -> 1.1.0 linux-testing: 4.15-rc3 -> 4.15-rc4 steam: override nss, nspr, fixes #32781 ponyc: 0.20.0 -> 0.21.0 pythonPackages.pwntools: disable tests gnome3.gnome-tweak-tool: 3.26.3 → 3.26.4 vim-rhubarb: init at 2017-06-28 atom: depend on libsecret nvidia-settings: Make sure binary can find libXv.so backblaze-b2: 0.6.2 -> 1.1.0 ...
| * cc-wrapper: don't set cxx_stdlib when nativeTools is trueDylan Simon2017-12-17
| | | | | | | | There are no gcc paths on nativeTools, and cc isn't set.
* | Merge commit '9d8f9b2e531bf95a700a949d879927fb6996ffc9' into binutils-wrapperJohn Ericson2017-12-13
|\ \
| * | cc-wrapper: don't add broken cflags to clangWill Dietz2017-11-30
| |/ | | | | | | | | | | | | | | | | On non-GNU (gcc) compilers, there is no "/lib/gcc/..." so when this is eventually expanded this is empty resulting in an incomplete "-idirafter " that eats the next argument: -idirafter -B/nix/store/wamjwwdvkmhbf4f2902nhw8jxxzv0hy3-clang-wrapper-4.0.1/bin/
* | bintools-wrapper: Import separately from cc-wrapperJohn Ericson2017-12-13
| |
* | bintools-wrapper: InitJohn Ericson2017-12-13
| | | | | | | | | | | | Factor a bintools (i.e. binutils / cctools) wrapper out of cc-wrapper. While only LD is wrapped, the setup hook defines environment variables on behalf of other utilites.
* | cc-wrapper: Don't treat "-" alone as a flagJohn Ericson2017-12-13
| | | | | | | | | | | | | | | | It means stdin, and is morally equivalent to passing a file. e.g. $ echo 'int main(void) { return 0; }' | gcc -x c - will compile and link a binary.
* | cc-wrapper: Use separate mangler for "bool" variablesJohn Ericson2017-12-13
| | | | | | | | This avoids any `NIX_FOOBAR=1 1` not triggering conditions.
* | cc-wrapper: Pull variable mangler into utils.shJohn Ericson2017-12-13
| | | | | | | | In preparation for splitting out bintools-wrapper
* | cc-wrapper: GNAT wrapper stop caring about `-m32`John Ericson2017-12-11
|/ | | | It need not concern itself with 32-bit dynamic linking; ld-wrapper handles that now.
* cc-wrapper: Define new- and old-style cross env varsJohn Ericson2017-11-28
| | | | For example, `BUILD_CC` and `CC_FOR_BUILD`
* cc-wrapper: Export env vars for objdump and readelf in setup-hookJohn Ericson2017-11-28
| | | | Also fix alphabetical order
* cc-wrapper: Don't leave CMD defined after setup hookJohn Ericson2017-11-28
| | | | | Rename to `cmd` too, as uppercase typically means the variable is exported.
* cc-wrapper: Fix stray binPrefix -> targetPrefixJohn Ericson2017-11-27
| | | | | I thought my sed in e755a8a27d5c33d87a5742817c373028d35443e9 was exhaustive, but it was not.
* treewide: Use `targetPrefix` instead of `prefix` for platform name prefixesJohn Ericson2017-11-27
| | | | | | | | | Certain tools, e.g. compilers, are customarily prefixed with the name of their target platform so that multiple builds can be used at once without clobbering each other on the PATH. I was using identifiers named `prefix` for this purpose, but that conflicts with the standard use of `prefix` to mean the directory where something is installed. To avoid conflict and confusion, I renamed those to `targetPrefix`.