[Mlir-commits] [mlir] [mlir] Fixing a regression that '-D' option of llvm-tblgen is unregistered. (PR #91329)
Mehdi Amini
llvmlistbot at llvm.org
Sat May 11 04:34:22 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(
----------------
joker-eph wrote:
The variable should follow MLIR convention.
https://github.com/llvm/llvm-project/pull/91329
More information about the Mlir-commits
mailing list