[clang] [clang-cl] Accept `cl`-style output arguments (`/Fo`, `-Fo`) for `--precompile` (PR #121046)
Chuanqi Xu via cfe-commits
cfe-commits at lists.llvm.org
Sun May 11 18:48:08 PDT 2025
================
@@ -14,3 +14,11 @@
//--- test.pcm
// CPP20WARNING-NOT: clang-cl: warning: argument unused during compilation: '/std:c++20' [-Wunused-command-line-argument]
+
+// test whether the following outputs %Hello.bmi
+// RUN: %clang_cl /std:c++20 --precompile -x c++-module -fmodule-output=%t/Hello.bmi -Fo"%t/Hello.bmi" -c %t/Hello.cppm -### 2>&1 | FileCheck %s
----------------
ChuanqiXu9 wrote:
Sorry for ignoring this. `--precompile` will be meaningless if it is followed by a `-c`. So the command line in cmake's thread actually use `-fmodule-output`.
https://github.com/llvm/llvm-project/pull/121046
More information about the cfe-commits
mailing list