apple-sdk: only rewrite old SDK paths (#353383)

This commit is contained in:
Randy Eckenrode 2024-11-04 17:18:06 -05:00 committed by GitHub
commit b15dd30144
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -48,9 +48,13 @@ let
(callPackage ./common/propagate-inputs.nix { })
(callPackage ./common/propagate-xcrun.nix { })
]
++ [
# These have to happen last.
# Older SDKs do not include the libraries re-exported from umbrella frameworks in the umbrellas stubs, which causes
# link failures for those libraries unless their paths have been rewritten to point to the store.
++ lib.optionals (lib.versionOlder sdkVersion "11.0") [
(callPackage ./common/rewrite-sdk-paths.nix { inherit sdkVersion; })
]
# This has to happen last.
++ [
(callPackage ./common/run-build-phase-hooks.nix { })
]
);