mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Revert "Revert "Look up runtime libraries in SDK""
This commit is contained in:
committed by
GitHub
parent
8221c6735c
commit
1e81ced48d
@@ -194,17 +194,23 @@ protected:
|
||||
file_types::ID InputType,
|
||||
const char *PrefixArgument = nullptr) const;
|
||||
|
||||
/// Get the runtime library link path, which is platform-specific and found
|
||||
/// Get the resource dir link path, which is platform-specific and found
|
||||
/// relative to the compiler.
|
||||
void getRuntimeLibraryPath(SmallVectorImpl<char> &runtimeLibPath,
|
||||
const llvm::opt::ArgList &args, bool shared) const;
|
||||
void getResourceDirPath(SmallVectorImpl<char> &runtimeLibPath,
|
||||
const llvm::opt::ArgList &args, bool shared) const;
|
||||
|
||||
/// Get the runtime library link paths, which typically include the resource
|
||||
/// dir path and the SDK.
|
||||
void getRuntimeLibraryPaths(SmallVectorImpl<std::string> &runtimeLibPaths,
|
||||
const llvm::opt::ArgList &args,
|
||||
StringRef SDKPath, bool shared) const;
|
||||
|
||||
void addPathEnvironmentVariableIfNeeded(Job::EnvironmentVector &env,
|
||||
const char *name,
|
||||
const char *separator,
|
||||
options::ID optionID,
|
||||
const llvm::opt::ArgList &args,
|
||||
StringRef extraEntry = "") const;
|
||||
ArrayRef<std::string> extraEntries = {}) const;
|
||||
|
||||
/// Specific toolchains should override this to provide additional conditions
|
||||
/// under which the compiler invocation should be written into debug info. For
|
||||
|
||||
Reference in New Issue
Block a user