This is a possible alternative to D135108, the downside here is that some tests expect clang -### output to start with clang and those need to be fixed up more often here because in D135108 "clang" is still present as the 1st arg not the executable name. It is much cleaner in terms of amount of code that needs to be changed.
Diff Detail
Diff Detail
Event Timeline
llvm/tools/llvm-driver/llvm-driver.cpp | ||
---|---|---|
65–71 | Could you instead include -cc1, -cc1as and -cc1gen-reproducer as an alias for clang by appending them to LLVM_DRIVER_TOOL_ALIASES_clang? |
llvm/tools/llvm-driver/llvm-driver.cpp | ||
---|---|---|
65–71 | Unfortunately not because these are the 1st argument and not the executable name so we would end up invoking clang with argv[0] as "-cc1" and that arg would get skipped. |
Could you instead include -cc1, -cc1as and -cc1gen-reproducer as an alias for clang by appending them to LLVM_DRIVER_TOOL_ALIASES_clang?