[clang][driver] Support `-x` for all languages in CL mode (#89772)
After https://github.com/llvm/llvm-project/pull/68921, clang-cl gained option `-x` but only for CUDA/HIP. This commit simply removes the restriction on parameters to `-x`. Especially, it is able to use `-x c++-module` and `-x c++-system-header` to build C++20 modules and header units with clang-cl. This effectively reverts commit fe082124. Closes https://github.com/llvm/llvm-project/issues/88006.
parent
3c9641e7
Please register or sign in to comment