Don't set a default SDK in the new driver, either.

Goes with r12414.

Swift SVN r12439
This commit is contained in:
Jordan Rose
2014-01-17 00:15:15 +00:00
parent 11008f0ed1
commit 8cf19bf152

View File

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