[clang] [clang][driver] Support `--precompile` and `-fmodule-*` options in Clang-CL (PR #98761)
Chuanqi Xu via cfe-commits
cfe-commits at lists.llvm.org
Tue Jul 16 18:46:04 PDT 2024
================
@@ -0,0 +1,65 @@
+// REQUIRES: system-windows
+
+// RUN: rm -rf %t
+// RUN: mkdir -p %t
+// RUN: split-file %s %t
+
+// RUN: %clang_cl /std:c++20 --precompile "%/t/Hello.cppm" "/Fo%/t/Hello.pcm"
----------------
ChuanqiXu9 wrote:
We don't need to do that in the test of Drivers. We can pass `-###` here (You can look at other test cases in clang/test/Driver for an example) and check for the output. If `-###` is specified, it wouldn't run actually but only print the outputs.
https://github.com/llvm/llvm-project/pull/98761
More information about the cfe-commits
mailing list