diff --git a/clang/unittests/Driver/ToolChainTest.cpp b/clang/unittests/Driver/ToolChainTest.cpp --- a/clang/unittests/Driver/ToolChainTest.cpp +++ b/clang/unittests/Driver/ToolChainTest.cpp @@ -60,7 +60,7 @@ llvm::MemoryBuffer::getMemBuffer("\n")); std::unique_ptr C(TheDriver.BuildCompilation( - {"-fsyntax-only", "--gcc-toolchain=", "foo.cpp"})); + {"-fsyntax-only", "--gcc-toolchain=", "--sysroot=", "foo.cpp"})); EXPECT_TRUE(C); std::string S;