Unverified Commit c93f6d55 authored by Randy Eckenrode's avatar Randy Eckenrode
Browse files

apple-sdk: reduce spurious warnings when using SwiftPM

SwiftPM adds several SDK paths to the search path by default. Creating
empty paths in the SDK silences those warnings and reduces log spam.
parent 8b9d5897
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -90,6 +90,11 @@ stdenvNoCC.mkDerivation (
        ln -s "${sdkName}" "$sdkpath/MacOSX${sdkMajor}.sdk"
        ln -s "${sdkName}" "$sdkpath/MacOSX.sdk"

        # Swift adds these locations to its search paths. Avoid spurious warnings by making sure they exist.
        mkdir -p "$platformPath/Developer/Library/Frameworks"
        mkdir -p "$platformPath/Developer/Library/PrivateFrameworks"
        mkdir -p "$platformPath/Developer/usr/lib"

        runHook postInstall
      '';