Fix preprocessor option parsing

Exclude options::DXCOption to avoid confusing the parser with the
second -E option.
This commit is contained in:
Jonas Hahnfeld 2023-08-14 18:23:01 +02:00 committed by jenkins
parent 8c369bf487
commit 444a841163

View File

@ -157,7 +157,7 @@ void CompilerOptions::Parse(int argc, const char* const argv[],
InputArgList Args(OptsC1.ParseArgs(ArgStrings, MissingArgIndex,
MissingArgCount, 0,
options::NoDriverOption | options::CLOption));
options::NoDriverOption | options::CLOption | options::DXCOption));
std::vector<const char*> LLVMArgs;
LLVMArgs.push_back("cling (LLVM option parsing)");