Jörg Thalheim
166948d479
cc-wrapper: don't set rpath on static-pie executables
3 years ago
Pavol Rusnak
90f7338112
treewide: stdenv.lib -> lib
3 years ago
Jörg Thalheim
61bbbcd1af
bintools-wrapper: skip dynamic linker for static binaries
4 years ago
Vladimír Čunát
363175cd99
Revert "bintools-wrapper: skip dynamic linker for static binaries"
...
This reverts commit ccfd26ef14
.
These toolchain changes are too problematic, so reverting for now; see
https://github.com/NixOS/nixpkgs/pull/107086#issuecomment-749196366
4 years ago
Jörg Thalheim
b39dd890ac
tests.cc-wrapper: disable static compilation macOS
...
macOS does not support this
4 years ago
Jörg Thalheim
ccfd26ef14
bintools-wrapper: skip dynamic linker for static binaries
...
Currently we set dynamic-linker unconditionally. This breaks
however some static binaries i.e. rust binaries linked against musl.
There is no reason we should set an elf interpreter for static binaries
hence this is skipped if `-static` or `-static-pie` is either passed to
our cc or ld wrapper.
4 years ago
Jörg Thalheim
96092dc936
stdenv: make -nostdinc work as intended
...
Right now we add glibc to search path also -nostdinc was provided,
which breaks projects providing their own gcc.
4 years ago
John Ericson
e3b1937baf
tests.cc-wrapper: Fix sanitizer condition
...
fc9644d4c9
accidentally enabled the
sanitizer tests for GCC on Darwin, when fixing that case was never
attempted. Also inverted the condition from broken to working for
clarity.
6 years ago
John Ericson
6e7e22da70
llvm 5: split out compiler-rt and remove libcxxabi dep
...
We already did them on non-mass-rebuild llvm 6. Also, this allows
simplifying the stdenv booting.
We were missing the libcxxabi dep in compile-rt in llvm 6, so fixed that
too.
6 years ago
John Ericson
fc9644d4c9
llvm 6: Fix libcxxabi impurity and darwin sanitizers
6 years ago
Orivej Desh
07ebb8bb79
tests.cc-wrapper: do not test sanitizers on darwin
...
They are not supported yet.
https://github.com/NixOS/nixpkgs/pull/41284#issuecomment-394977350
6 years ago
Benjamin Saunders
f24f6d7af3
tests.cc-wrapper: skip known-broken sanitizer cases
6 years ago
Benjamin Saunders
ee06f735a8
tests.cc-wrapper: verify building with sanitizers
...
(cherry picked from commit 46eeef1898
)
6 years ago
Benjamin Saunders
b0d0b1adfe
clang_6: fix sanitizers under libstdc++
6 years ago
Benjamin Saunders
46eeef1898
tests.cc-wrapper: verify building with sanitizers
6 years ago
Will Dietz
9d8f9b2e53
Add clang multilib variants (x64_64-only, 64/32bit), basic multilib tests
7 years ago
John Ericson
5aec3f96a2
treewide: Use `*Platform.extensions`
7 years ago
Daiderd Jordan
19c4673310
nixpkgs-tests: add basic test for cc-wrapper
7 years ago