diff --git a/mlir/cmake/modules/AddMLIR.cmake b/mlir/cmake/modules/AddMLIR.cmake index 823f4281cab4..8441e4c3474d 100644 --- a/mlir/cmake/modules/AddMLIR.cmake +++ b/mlir/cmake/modules/AddMLIR.cmake @@ -339,18 +339,21 @@ function(add_mlir_aggregate name) if(MSVC) set_property(TARGET ${name} PROPERTY WINDOWS_EXPORT_ALL_SYMBOLS ON) endif() - string(APPEND _debugmsg - ": MAIN LIBRARY:\n" - " OBJECTS = ${_objects}\n" - " SOURCES = $>\n" - " DEPS = ${_deps}\n" - " LINK_LIBRARIES = $>\n" - " MLIR_AGGREGATE_EXCLUDE_LIBS = $>\n" - ) - file(GENERATE OUTPUT - "${CMAKE_CURRENT_BINARY_DIR}/${name}.aggregate_debug.txt" - CONTENT "${_debugmsg}" - ) + + # Debugging generator expressions can be hard. Uncomment the below to emit + # files next to the library with a lot of debug information: + # string(APPEND _debugmsg + # ": MAIN LIBRARY:\n" + # " OBJECTS = ${_objects}\n" + # " SOURCES = $>\n" + # " DEPS = ${_deps}\n" + # " LINK_LIBRARIES = $>\n" + # " MLIR_AGGREGATE_EXCLUDE_LIBS = $>\n" + # ) + # file(GENERATE OUTPUT + # "${CMAKE_CURRENT_BINARY_DIR}/${name}.aggregate_debug.txt" + # CONTENT "${_debugmsg}" + # ) endfunction(add_mlir_aggregate) # Adds an MLIR library target for installation.