summaryrefslogtreecommitdiff
path: root/pkgs/test/cc-wrapper (follow)
Commit message (Expand)AuthorAgeFilesLines
* llvmPackages_*.libcxx: include libcxxabi within libcxx•••Key test case: nixpkgs#pkgsStatic.pkgsLLVM.ncurses Prior to this patch, this fails with errors such as: ``` error: undefined symbol: __cxa_throw ``` I think this is a reasonable solution because in #292043, libcxxabi was 'merged into libcxx', however, the commit message suggests that only dynamic linking was accounted for, because it says: ``` * linux/freebsd `libc++.so` is a linker script `LINK(libc++.so.1, -lc++abi)` making `-lc++` sufficient. ``` Whereas, I found that if I tried linking a "hello world" C++ program with a static hostPlatform, it failed unless -lc++abi was passed. Signed-off-by: Peter Waller <p@pwaller.net> Peter Waller2024-05-101-0/+11
* tests.cc-wrapper: add atomics test•••`-std=c++17` is for clang 5 Artturin2023-11-162-1/+18
* tests.cc-wrapper.supported: add test for cxxabi header•••`#include <cxxabi.h>` `/nix/store/02wpjmp2zjjxz13z7g599mniwi25zkcy-libcxxabi-16.0.6-dev/include/cxxabi.h:20:10: fatal error: '__cxxabi_config.h' file not found` Artturin2023-09-182-0/+15
* tests.cc-wrapper: show command output on different line•••this is much easier to read. Artturin2023-09-071-10/+10
* tests.cc-wrapper: show more prominently what cc is being tested•••Show what libc is used, otherwise there's indication what libc is being used. Ex in gccMultiStdenv. Artturin2023-09-071-1/+5
* cc-wrapper, binutils-wrapper: add tests hardening-flags-handling•••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. Robert Scott2023-09-024-0/+441
* Merge pull request #229754 from rrbutani/fix/cc-wrapper-extra-positional-args•••Support `--` in `cc-wrapper`John Ericson2023-05-081-0/+23
|\
| * cc-wrapper-test: add tests for `--`Rahul Butani2023-05-031-0/+23
* | tests.cc-multilib: put error on separate lineArtturin2023-05-051-5/+5
|/
* cc-wrapper-test: add workaround for asan allocation error•••Miminal program fail with address sanitizer error failed to allocate 0x0 (0) bytes of SetAlternateSignalStack https://bugzilla.redhat.com/show_bug.cgi?id=1950244 Nick Cao2022-12-251-1/+1
* cc-wrapper-test: do not test sanitizers when cross compilingNick Cao2022-12-251-1/+1
* cc-wrapper-test: do not test sanitizers on darwinNick Cao2022-12-251-1/+1
* cc-wrapper-test: support cross compilersNick Cao2022-12-251-11/+12
* cc-wrapper: don't set rpath on static-pie executablesJörg Thalheim2021-05-231-2/+1
* treewide: stdenv.lib -> libPavol Rusnak2021-01-242-12/+12
* bintools-wrapper: skip dynamic linker for static binariesJörg Thalheim2020-12-271-4/+19
* Revert "bintools-wrapper: skip dynamic linker for static binaries"•••This reverts commit ccfd26ef14ea213320f0b49db3fb347785b38f06. These toolchain changes are too problematic, so reverting for now; see https://github.com/NixOS/nixpkgs/pull/107086#issuecomment-749196366 Vladimír Čunát2020-12-211-19/+4
* tests.cc-wrapper: disable static compilation macOS•••macOS does not support this Jörg Thalheim2020-12-141-8/+11
* 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. Jörg Thalheim2020-12-141-4/+16
* 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. Jörg Thalheim2020-07-233-0/+17
* Merge remote-tracking branch 'upstream/master' into stagingJohn Ericson2018-06-181-2/+4
|\
| * tests.cc-wrapper: Fix sanitizer condition•••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. John Ericson2018-06-181-2/+4
* | 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. John Ericson2018-06-141-1/+1
|/
* llvm 6: Fix libcxxabi impurity and darwin sanitizersJohn Ericson2018-06-141-1/+1
* tests.cc-wrapper: do not test sanitizers on darwin•••They are not supported yet. https://github.com/NixOS/nixpkgs/pull/41284#issuecomment-394977350 Orivej Desh2018-06-061-1/+2
* tests.cc-wrapper: skip known-broken sanitizer casesBenjamin Saunders2018-05-301-7/+13
* clang_6: fix sanitizers under libstdc++Benjamin Saunders2018-05-241-2/+0
* tests.cc-wrapper: verify building with sanitizersBenjamin Saunders2018-05-242-0/+13
* Add clang multilib variants (x64_64-only, 64/32bit), basic multilib testsWill Dietz2017-12-051-0/+37
* treewide: Use `*Platform.extensions`John Ericson2017-09-131-5/+6
* nixpkgs-tests: add basic test for cc-wrapperDaiderd Jordan2017-09-107-0/+92