diff options
author | Dan Peebles <pumpkin@me.com> | 2017-04-04 08:07:52 -0400 |
---|---|---|
committer | Dan Peebles <pumpkin@me.com> | 2017-04-04 08:07:52 -0400 |
commit | 3a9c217804688668404ebfe9a199e6e85297a3a7 (patch) | |
tree | b1f6e8d27e26b9389776b0cbfcfb0ddc01e45e22 /pkgs/os-specific/darwin/apple-sdk | |
parent | 35dbcbb2960cd5a310638183cf75a7874c57e373 (diff) | |
download | nixpkgs-3a9c217804688668404ebfe9a199e6e85297a3a7.tar nixpkgs-3a9c217804688668404ebfe9a199e6e85297a3a7.tar.gz nixpkgs-3a9c217804688668404ebfe9a199e6e85297a3a7.tar.bz2 nixpkgs-3a9c217804688668404ebfe9a199e6e85297a3a7.tar.lz nixpkgs-3a9c217804688668404ebfe9a199e6e85297a3a7.tar.xz nixpkgs-3a9c217804688668404ebfe9a199e6e85297a3a7.tar.zst nixpkgs-3a9c217804688668404ebfe9a199e6e85297a3a7.zip |
rtags: fix for clang/libc++ 4
This also fixes a missing header in the SDK that rtags needs to work properly. The underlying cause is that C++ headers got shuffled around a lot in libc++ 3.8 (I believe) and became more standards-compliant, which led to a lot of C-compatible passthrough header files being added to it like math.h, which defines some C++-compatible versions of standard functions like signbit, while #include_next'ing the system math.h. In this case, including the SDK was stuffing another math.h in front of the libc++ shim, which led to all sorts of mysterious failures.
Diffstat (limited to 'pkgs/os-specific/darwin/apple-sdk')
-rw-r--r-- | pkgs/os-specific/darwin/apple-sdk/default.nix | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/pkgs/os-specific/darwin/apple-sdk/default.nix b/pkgs/os-specific/darwin/apple-sdk/default.nix index 536e62f777e..73126ce1f5c 100644 --- a/pkgs/os-specific/darwin/apple-sdk/default.nix +++ b/pkgs/os-specific/darwin/apple-sdk/default.nix @@ -157,6 +157,7 @@ in rec { mkdir -p $out/include pushd $out/include >/dev/null ln -s "${sdk}/include/xpc" + ln -s "${sdk}/include/launch.h" popd >/dev/null ''; }; |