darwin/xcode: provide libc++ from XCode toolchain

We could use our own libc++ here, but it is probably best to use the
provided one to ensure consistency. This fixes some C++ programs when
running aarch64-apple-ios-clang++.

authored by Matthew Bauer and committed by Andrew Childs 3e7034ab a6753d0c

+1
+1
pkgs/os-specific/darwin/xcode/sdk-pkgs.nix
··· 41 mv cc-cflags.tmp $out/nix-support/cc-cflags 42 echo "-target ${targetPlatform.config}" >> $out/nix-support/cc-cflags 43 echo "-isystem ${sdk}/usr/include${lib.optionalString (lib.versionAtLeast "10" sdk.version) " -isystem ${sdk}/usr/include/c++/4.2.1/ -stdlib=libstdc++"}" >> $out/nix-support/cc-cflags 44 ''; 45 }) // { 46 inherit sdk;
··· 41 mv cc-cflags.tmp $out/nix-support/cc-cflags 42 echo "-target ${targetPlatform.config}" >> $out/nix-support/cc-cflags 43 echo "-isystem ${sdk}/usr/include${lib.optionalString (lib.versionAtLeast "10" sdk.version) " -isystem ${sdk}/usr/include/c++/4.2.1/ -stdlib=libstdc++"}" >> $out/nix-support/cc-cflags 44 + ${lib.optionalString (lib.versionAtLeast sdk.version "14") "echo -isystem ${xcode}/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1 >> $out/nix-support/cc-cflags"} 45 ''; 46 }) // { 47 inherit sdk;