mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Don't set a default SDK in the new driver, either.
Goes with r12414. Swift SVN r12439
This commit is contained in:
@@ -40,10 +40,6 @@
|
||||
|
||||
using namespace swift;
|
||||
|
||||
#ifndef SWIFT_MODULES_SDK
|
||||
#define SWIFT_MODULES_SDK ""
|
||||
#endif
|
||||
|
||||
static std::string displayName(StringRef MainExecutablePath) {
|
||||
std::string Name = llvm::sys::path::stem(MainExecutablePath);
|
||||
Name += " -frontend";
|
||||
@@ -288,11 +284,6 @@ int frontend_main(ArrayRef<const char *>Args,
|
||||
enableDiagnosticVerifier(Instance.getSourceMgr());
|
||||
}
|
||||
|
||||
// TODO: remove once we properly handle no -sdk argument
|
||||
if (Invocation.getSDKPath() == "") {
|
||||
Invocation.setSDKPath(SWIFT_MODULES_SDK);
|
||||
}
|
||||
|
||||
if (Instance.setup(Invocation)) {
|
||||
return 1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user