+21
-3
pkgs/development/compilers/swift/compiler/default.nix
+21
-3
pkgs/development/compilers/swift/compiler/default.nix
···--e "s|^\(\s*\)\($unwrappedClang\) \"@\\\$responseFile\"|\1argv0=\$0\n\1${bash}/bin/bash -c \"exec -a '\$argv0' \2 '@\$responseFile'\"|"+-e "s|^\(\s*\)\($unwrappedClang\) \"@\\\$responseFile\"|\1argv0=\$0\n\1${bash}/bin/bash -c \"exec -a '\$argv0' \2 '@\$responseFile'\"|" \+-e 's|$NIX_CXXSTDLIB_COMPILE_${clang.suffixSalt}|-isystem '$SWIFT_BUILD_ROOT'/libcxx/include/c++/v1|g'···+-e 's|$NIX_CXXSTDLIB_COMPILE_${clang.suffixSalt}|-isystem '$SWIFT_BUILD_ROOT'/libcxx/include/c++/v1|g'······
-63
pkgs/development/compilers/swift/compiler/patches/swift-darwin-libcxx-flags.patch
-63
pkgs/development/compilers/swift/compiler/patches/swift-darwin-libcxx-flags.patch
···-set(sdk_option ${sdk_option} "-resource-dir" "${swift_exec_bin_dir}/../bootstrapping0/lib/swift")-- # Darwin SDKs in Xcode 12 or older do not include libc++, which prevents clang from finding libc++ when invoked-- # from ClangImporter. This results in build errors. To workaround this, let's explicitly pass the path to libc++-- message(WARNING "Building with an outdated Darwin SDK: libc++ missing from the ${SWIFT_HOST_VARIANT_SDK} SDK. Will use libc++ from the toolchain.")-- get_filename_component(absolute_libcxx_path "${CMAKE_C_COMPILER}/../../include/c++/v1" REALPATH)-set(sdk_option "-sdk" "${SWIFT_SDK_${SWIFT_HOST_VARIANT_SDK}_ARCH_${SWIFT_HOST_VARIANT_ARCH}_PATH}")
+5
pkgs/development/compilers/swift/wrapper/default.nix
+5
pkgs/development/compilers/swift/wrapper/default.nix
···