about summary refs log tree commit diff
path: root/pkgs/test/cc-wrapper
AgeCommit message (Collapse)AuthorFilesLines
2023-11-16tests.cc-wrapper: add atomics testArtturin2-1/+18
`-std=c++17` is for clang 5
2023-09-18tests.cc-wrapper.supported: add test for cxxabi headerArtturin2-0/+15
`#include <cxxabi.h>` `/nix/store/02wpjmp2zjjxz13z7g599mniwi25zkcy-libcxxabi-16.0.6-dev/include/cxxabi.h:20:10: fatal error: '__cxxabi_config.h' file not found`
2023-09-07tests.cc-wrapper: show command output on different lineArtturin1-10/+10
this is much easier to read.
2023-09-07tests.cc-wrapper: show more prominently what cc is being testedArtturin1-1/+5
Show what libc is used, otherwise there's indication what libc is being used. Ex in gccMultiStdenv.
2023-09-02cc-wrapper, binutils-wrapper: add tests hardening-flags-handlingRobert Scott4-0/+441
most tests use debian-devscripts' hardening-check, so only work on ELF systems and can only detect a limited subset of flags. some extra tests actually execute fortify-protected programs and should be slightly more universally applicable.
2023-05-08Merge pull request #229754 from rrbutani/fix/cc-wrapper-extra-positional-argsJohn Ericson1-0/+23
Support `--` in `cc-wrapper`
2023-05-05tests.cc-multilib: put error on separate lineArtturin1-5/+5
2023-05-03cc-wrapper-test: add tests for `--`Rahul Butani1-0/+23
2022-12-25cc-wrapper-test: add workaround for asan allocation errorNick Cao1-1/+1
Miminal program fail with address sanitizer error failed to allocate 0x0 (0) bytes of SetAlternateSignalStack https://bugzilla.redhat.com/show_bug.cgi?id=1950244
2022-12-25cc-wrapper-test: do not test sanitizers when cross compilingNick Cao1-1/+1
2022-12-25cc-wrapper-test: do not test sanitizers on darwinNick Cao1-1/+1
2022-12-25cc-wrapper-test: support cross compilersNick Cao1-11/+12
2021-05-23cc-wrapper: don't set rpath on static-pie executablesJörg Thalheim1-2/+1
2021-01-24treewide: stdenv.lib -> libPavol Rusnak2-12/+12
2020-12-27bintools-wrapper: skip dynamic linker for static binariesJörg Thalheim1-4/+19
2020-12-21Revert "bintools-wrapper: skip dynamic linker for static binaries"Vladimír Čunát1-19/+4
This reverts commit ccfd26ef14ea213320f0b49db3fb347785b38f06. These toolchain changes are too problematic, so reverting for now; see https://github.com/NixOS/nixpkgs/pull/107086#issuecomment-749196366
2020-12-14tests.cc-wrapper: disable static compilation macOSJörg Thalheim1-8/+11
macOS does not support this
2020-12-14bintools-wrapper: skip dynamic linker for static binariesJörg Thalheim1-4/+16
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.
2020-07-23stdenv: make -nostdinc work as intendedJörg Thalheim3-0/+17
Right now we add glibc to search path also -nostdinc was provided, which breaks projects providing their own gcc.
2018-06-18Merge remote-tracking branch 'upstream/master' into stagingJohn Ericson1-2/+4
2018-06-18tests.cc-wrapper: Fix sanitizer conditionJohn Ericson1-2/+4
fc9644d4c9c9d29958e9bcf1676d48d4b3026bb4 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.
2018-06-14llvm 5: split out compiler-rt and remove libcxxabi depJohn Ericson1-1/+1
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.
2018-06-14llvm 6: Fix libcxxabi impurity and darwin sanitizersJohn Ericson1-1/+1
2018-06-06tests.cc-wrapper: do not test sanitizers on darwinOrivej Desh1-1/+2
They are not supported yet. https://github.com/NixOS/nixpkgs/pull/41284#issuecomment-394977350
2018-05-30tests.cc-wrapper: skip known-broken sanitizer casesBenjamin Saunders1-7/+13
2018-05-24clang_6: fix sanitizers under libstdc++Benjamin Saunders1-2/+0
2018-05-24tests.cc-wrapper: verify building with sanitizersBenjamin Saunders2-0/+13
2017-12-05Add clang multilib variants (x64_64-only, 64/32bit), basic multilib testsWill Dietz1-0/+37
2017-09-13treewide: Use `*Platform.extensions`John Ericson1-5/+6
2017-09-10nixpkgs-tests: add basic test for cc-wrapperDaiderd Jordan7-0/+92