Revert "Revert "Look up runtime libraries in SDK""

This commit is contained in:
Brent Royal-Gordon
2019-07-03 14:18:48 -07:00
committed by GitHub
parent 8221c6735c
commit 1e81ced48d
7 changed files with 122 additions and 93 deletions

View File

@@ -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