Revert "dotnetCorePackages.dotnet_{8,9}: ensure build can find the Swift overlay"

This reverts commit 86412523f5.
This commit is contained in:
Randy Eckenrode
2024-10-15 12:36:07 -04:00
parent 4340a5addb
commit 7cbf599edc
2 changed files with 0 additions and 10 deletions
@@ -85,7 +85,6 @@ writeShellScriptBin "patch-nupkgs" (
pushd "$x"
sed -i 's: -no_code_signature_warning::g' build/Microsoft.NETCore.Native.targets
sed -i 's:Include="-ld_classic"::g' build/Microsoft.NETCore.Native.Unix.targets
sed -i 's:-L/usr/lib/swift:-L$(SDKROOT)/usr/lib/swift:g' build/Microsoft.NETCore.Native.Unix.targets
touch .nix-patched-ilcompiler
popd
done
@@ -293,15 +293,6 @@ stdenv.mkDerivation rec {
-s \$prev -t elem -n SkipInstallerBuild -v true \
src/runtime/Directory.Build.props
# Make sure .NET uses the Swift overlay for the SDK active in the build environment.
substituteInPlace \
src/runtime/src/coreclr/nativeaot/BuildIntegration/Microsoft.NETCore.Native.Unix.targets \
--replace-fail '-L/usr/lib/swift' '-L$(SDKROOT)/usr/lib/swift'
substituteInPlace \
src/runtime/src/native/libs/System.Security.Cryptography.Native.Apple/extra_libs.cmake \
--replace-fail '-L/usr/lib/swift' '-L''${CMAKE_OSX_SYSROOT}/usr/lib/swift'
# stop passing -sdk without a path
# stop using xcrun
# add -module-cache-path to fix swift errors, see sandboxProfile