diff options
author | Artturin <Artturin@artturin.com> | 2023-09-17 23:59:10 +0300 |
---|---|---|
committer | Amneesh Singh <natto@weirdnatto.in> | 2023-09-18 06:43:36 +0530 |
commit | 42f329261698805c6367cc488105c6573f0e4cf5 (patch) | |
tree | 9276be6c57c04c9705c0ca274d704810966cf657 /pkgs/test | |
parent | accafc0ed36ba6da401e1abc9595f633fc7d4401 (diff) | |
download | nixlib-42f329261698805c6367cc488105c6573f0e4cf5.tar nixlib-42f329261698805c6367cc488105c6573f0e4cf5.tar.gz nixlib-42f329261698805c6367cc488105c6573f0e4cf5.tar.bz2 nixlib-42f329261698805c6367cc488105c6573f0e4cf5.tar.lz nixlib-42f329261698805c6367cc488105c6573f0e4cf5.tar.xz nixlib-42f329261698805c6367cc488105c6573f0e4cf5.tar.zst nixlib-42f329261698805c6367cc488105c6573f0e4cf5.zip |
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`
Diffstat (limited to 'pkgs/test')
-rw-r--r-- | pkgs/test/cc-wrapper/default.nix | 7 | ||||
-rw-r--r-- | pkgs/test/cc-wrapper/include-cxxabi.cc | 8 |
2 files changed, 15 insertions, 0 deletions
diff --git a/pkgs/test/cc-wrapper/default.nix b/pkgs/test/cc-wrapper/default.nix index 8809030989e6..74009c97980d 100644 --- a/pkgs/test/cc-wrapper/default.nix +++ b/pkgs/test/cc-wrapper/default.nix @@ -30,6 +30,13 @@ in stdenv.mkDerivation { $CXX -o cxx-check ${./cxx-main.cc} ${emulator} ./cxx-check + # test for https://github.com/NixOS/nixpkgs/issues/214524#issuecomment-1431745905 + # .../include/cxxabi.h:20:10: fatal error: '__cxxabi_config.h' file not found + # in libcxxStdenv + echo "checking whether cxxabi.h can be included... " >&2 + $CXX -o include-cxxabi ${./include-cxxabi.cc} + ${emulator} ./include-cxxabi + ${lib.optionalString (stdenv.isDarwin && stdenv.cc.isClang) '' echo "checking whether compiler can build with CoreFoundation.framework... " >&2 mkdir -p foo/lib diff --git a/pkgs/test/cc-wrapper/include-cxxabi.cc b/pkgs/test/cc-wrapper/include-cxxabi.cc new file mode 100644 index 000000000000..6ffc97e414a5 --- /dev/null +++ b/pkgs/test/cc-wrapper/include-cxxabi.cc @@ -0,0 +1,8 @@ +#include <cxxabi.h> +#include <iostream> + +int main(int argc, char **argv) +{ + std::cerr << "ok" << std::endl; + return 0; +} |