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

Florian Hahn llvmlistbot at llvm.org
Fri May 10 02:09:36 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(
----------------
fhahn wrote:

Is there a reason the variable name starts with uppercase while he others above start with lowercase?

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


More information about the Mlir-commits mailing list