nixpkgs/pkgs/build-support/cc-wrapper
Amneesh Singh accafc0ed3
cc-wrapper: add libcxxabi include flag for LLVM
Removed workaround from llvm 16.

Fixes including cxxabi.h on llvm >=15 libcxxStdenv.

```c
int main() {}
```

```
/nix/store/qwnvng0cbyx0bijm654jpmpl0516hfhx-libcxxabi-15.0.7-dev/include/cxxabi.h:20:10: fatal error: '__cxxabi_config.h' file not found
```

Before llvm 15 this used to work because `libcxx` copied the headers
from `cxxabi` to it's own `include`, which was then picked up by the
line above this one

Alternative fix would be to copy all files from `${cxxabi.dev}/include/c++/v1` to `${cxxabi.dev}/include` so the cc-wrapper setup hook would pick them up, but that would depend on in cxxabi being in buildInputs.

Signed-off-by: Amneesh Singh <natto@weirdnatto.in>
2023-09-18 06:43:32 +05:30
..
add-clang-cc-cflags-before.sh
add-flags.sh
add-gnat-extra-flags.sh
add-hardening.sh cc-wrapper: add fortify flags after invocation args, not before 2023-08-19 14:59:06 +01:00
cc-wrapper.sh cc-wrapper: add fortify flags after invocation args, not before 2023-08-19 14:59:06 +01:00
default.nix cc-wrapper: add libcxxabi include flag for LLVM 2023-09-18 06:43:32 +05:30
fortran-hook.sh
gnat-wrapper.sh
go-wrapper.sh gccgo: wrap go binary (#207670) 2023-01-20 14:31:54 +01:00
setup-hook.sh hardening flags: enable fortify3 by default 2023-06-25 11:50:46 +01:00