File tree Expand file tree Collapse file tree 3 files changed +9
-0
lines changed Expand file tree Collapse file tree 3 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -42,6 +42,11 @@ set(GC_LIB_SOURCES CACHE INTERNAL "The graph_compiler library source paths")
42
42
set (GC_LIB_INCLUDES CACHE INTERNAL "The graph_compiler library include paths" )
43
43
44
44
add_definitions (${LLVM_DEFINITIONS} )
45
+
46
+ set (GC_MLIR_CXX_FLAGS "" )
47
+ if (NOT MSVC )
48
+ set (GC_MLIR_CXX_FLAGS "-Wno-unused-but-set-parameter" )
49
+ endif ()
45
50
add_subdirectory (include )
46
51
add_subdirectory (lib )
47
52
add_subdirectory (src )
Original file line number Diff line number Diff line change
1
+ set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${GC_MLIR_CXX_FLAGS} " )
1
2
add_subdirectory (Linalgx )
2
3
add_subdirectory (Microkernel )
3
4
add_subdirectory (OnednnGraph )
Original file line number Diff line number Diff line change @@ -2,6 +2,9 @@ get_property(dialect_libs GLOBAL PROPERTY MLIR_DIALECT_LIBS)
2
2
get_property (conversion_libs GLOBAL PROPERTY MLIR_CONVERSION_LIBS )
3
3
set (gc_opt_libs ${dialect_libs} ${conversion_libs} MLIROptLib )
4
4
add_llvm_executable (gc-opt gc-opt.cpp )
5
+ if (GC_MLIR_CXX_FLAGS )
6
+ target_compile_options (gc-opt PRIVATE ${GC_MLIR_CXX_FLAGS} )
7
+ endif ()
5
8
target_link_libraries (gc-opt PRIVATE ${gc_opt_libs} )
6
9
7
10
add_subdirectory (dnnl )
You can’t perform that action at this time.
0 commit comments