[Mlir-commits] [mlir] [mlir] Fixing a regression that '-D' option of llvm-tblgen is unregistered. (PR #91329)

Daniel Chen llvmlistbot at llvm.org
Mon May 13 07:27:45 PDT 2024


================
@@ -62,6 +62,16 @@ int main(int argc, char **argv) {
       "write-if-changed",
       llvm::cl::desc("Only write to the output file if it changed"));
 
+  // `ResetCommandLineParser` at the above unregistered the "D" option
+  // of `llvm-tblgen`, which caused `TestOps.cpp` to fail due to
+  // "Unknnown command line argument '-D...`" when a macros name is
+  // present. The following is a workaround to re-register it again.
+  llvm::cl::list<std::string> MacroNames(
----------------
DanielCChen wrote:

Ok. I will post another patch to change to lowercase `macroNames`.

https://github.com/llvm/llvm-project/pull/91329


More information about the Mlir-commits mailing list