================ @@ -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 ---------------- zmodem wrote:
This is just one invocation, but the logic in GetNamedOutputPath() seems to cover many cases. Also, is it `-fmodule-output` or `/Fo` that sets the output filename (or both?) (Nit: you'll want to put `--` before `%t/Hello.cppm`, otherwise it may be interpreted as a command-line option e.g. if the path starts with `/Users`.) https://github.com/llvm/llvm-project/pull/121046 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits