mirror of https://github.com/libAthena/athena.git
Add fix for finding canonical GCC path on linux
This commit is contained in:
parent
f414abe5a5
commit
31c394584d
|
@ -50,7 +50,7 @@ static llvm::cl::opt<std::string> FMSCompatVersion("fms-compatibility-version",
|
||||||
|
|
||||||
static llvm::cl::list<std::string> InputFilenames(llvm::cl::Positional,
|
static llvm::cl::list<std::string> InputFilenames(llvm::cl::Positional,
|
||||||
llvm::cl::desc("<Input files>"),
|
llvm::cl::desc("<Input files>"),
|
||||||
llvm::cl::OneOrMore);
|
llvm::cl::ZeroOrMore);
|
||||||
|
|
||||||
static llvm::cl::list<std::string> IncludeSearchPaths("I",
|
static llvm::cl::list<std::string> IncludeSearchPaths("I",
|
||||||
llvm::cl::desc("Header search path"),
|
llvm::cl::desc("Header search path"),
|
||||||
|
@ -2413,6 +2413,9 @@ int main(int argc, const char** argv)
|
||||||
llvm::cl::PrintHelpMessage();
|
llvm::cl::PrintHelpMessage();
|
||||||
|
|
||||||
std::vector<std::string> args = {"clang-tool",
|
std::vector<std::string> args = {"clang-tool",
|
||||||
|
#ifdef __linux__
|
||||||
|
"--gcc-toolchain=/usr",
|
||||||
|
#endif
|
||||||
"-fsyntax-only",
|
"-fsyntax-only",
|
||||||
"-std=c++1z",
|
"-std=c++1z",
|
||||||
"-D__atdna__=1",
|
"-D__atdna__=1",
|
||||||
|
|
Loading…
Reference in New Issue