File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -48,7 +48,9 @@ void registerTestConstantFold();
4848void registerTestConvertGPUKernelToCubinPass ();
4949void registerTestConvertGPUKernelToHsacoPass ();
5050void registerTestDominancePass ();
51+ #ifdef MLIR_INCLUDE_TESTS
5152void registerTestDialect (DialectRegistry &);
53+ #endif
5254void registerTestExpandTanhPass ();
5355void registerTestFunc ();
5456void registerTestGpuMemoryPromotionPass ();
@@ -133,7 +135,9 @@ int main(int argc, char **argv) {
133135#endif
134136 DialectRegistry registry;
135137 registerAllDialects (registry);
138+ #ifdef MLIR_INCLUDE_TESTS
136139 registerTestDialect (registry);
140+ #endif
137141 return failed (MlirOptMain (argc, argv, " MLIR modular optimizer driver\n " ,
138142 registry,
139143 /* preloadDialectsInContext=*/ false ));
You can’t perform that action at this time.
0 commit comments