Add missing "/System/Library/Frameworks" path to DYLD_FRAMEWORK_PATH.

This line was accidentally dropped from 06384be243, which also
contained a related fix to libImmediate (see that commit for details).

Resolves: https://github.com/apple/swift/issues/68785
This commit is contained in:
Lang Hames
2024-01-24 10:52:45 -08:00
parent 0c4efe4b73
commit 8eb9475ed8

View File

@@ -83,7 +83,8 @@ toolchains::Darwin::constructInvocation(const InterpretJobAction &job,
":", options::OPT_L, context.Args,
runtimeLibraryPaths);
addPathEnvironmentVariableIfNeeded(II.ExtraEnvironment, "DYLD_FRAMEWORK_PATH",
":", options::OPT_F, context.Args);
":", options::OPT_F, context.Args,
{"/System/Library/Frameworks"});
// FIXME: Add options::OPT_Fsystem paths to DYLD_FRAMEWORK_PATH as well.
return II;
}