mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[ModuleInterface] Add llvm::Triple overload of setTargetTriple.
This commit is contained in:
@@ -59,7 +59,11 @@ void CompilerInvocation::setRuntimeResourcePath(StringRef Path) {
|
||||
}
|
||||
|
||||
void CompilerInvocation::setTargetTriple(StringRef Triple) {
|
||||
LangOpts.setTarget(llvm::Triple(Triple));
|
||||
setTargetTriple(llvm::Triple(Triple));
|
||||
}
|
||||
|
||||
void CompilerInvocation::setTargetTriple(const llvm::Triple &Triple) {
|
||||
LangOpts.setTarget(Triple);
|
||||
updateRuntimeLibraryPath(SearchPathOpts, LangOpts.Target);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user