Skip to content

Commit

Permalink
[unittest/Sema] Use default target triple to fix Windows build
Browse files Browse the repository at this point in the history
  • Loading branch information
xedin committed Oct 13, 2020
1 parent 6e470f5 commit fde1af7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion unittests/Sema/SemaFixture.h
Expand Up @@ -38,7 +38,7 @@ class SemaTestBase : public ::testing::Test {
DiagnosticEngine Diags;

SemaTestBase() : Diags(SourceMgr) {
LangOpts.Target = llvm::Triple(llvm::sys::getProcessTriple());
LangOpts.Target = llvm::Triple(llvm::sys::getDefaultTargetTriple());

llvm::SmallString<128> libDir(SWIFTLIB_DIR);
llvm::sys::path::append(libDir, getPlatformNameForTriple(LangOpts.Target));
Expand Down

0 comments on commit fde1af7

Please sign in to comment.