[clang] [clang][driver][clang-cl] Support `--precompile` and `-fmodule-*` options in Clang-CL (PR #98761)
Chuanqi Xu via cfe-commits
cfe-commits at lists.llvm.org
Wed Jul 17 18:58:29 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:
Maybe something like:
```
// RUN: %clang_cl /std:c++20 --precompile -### -- %s 2>&1 | FileCheck %s
// CHECK: --precompile
```
and we can do such things for `-fmodule-file=` and `-fprebuilt-module-path=`
https://github.com/llvm/llvm-project/pull/98761
More information about the cfe-commits
mailing list