[Mlir-commits] [mlir] [mlir] tentative fix for "'GTEST_NO_LLVM_SUPPORT' is not defined" war… (PR #84539)

Mehdi Amini llvmlistbot at llvm.org
Fri Mar 8 12:35:36 PST 2024


================
@@ -197,6 +197,7 @@ add_subdirectory(lib/CAPI)
 
 if (MLIR_INCLUDE_TESTS)
   add_definitions(-DMLIR_INCLUDE_TESTS)
+  add_definitions(-DGTEST_NO_LLVM_SUPPORT=0)
----------------
joker-eph wrote:

This likely would be best defined inside the unit tests directory?

Add a comment explaining that this is needed because of Wundef


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


More information about the Mlir-commits mailing list