forked from OSchip/llvm-project
Disable add_mlir_aggregate() debug file generation.
* Leaves it as a commented out area with a note on how to debug.
This commit is contained in:
parent
50b68a3d03
commit
8e54f24f89
|
@ -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 = $<TARGET_GENEX_EVAL:${name},$<TARGET_PROPERTY:${name},SOURCES>>\n"
|
||||
" DEPS = ${_deps}\n"
|
||||
" LINK_LIBRARIES = $<TARGET_GENEX_EVAL:${name},$<TARGET_PROPERTY:${name},LINK_LIBRARIES>>\n"
|
||||
" MLIR_AGGREGATE_EXCLUDE_LIBS = $<TARGET_GENEX_EVAL:${name},$<TARGET_PROPERTY:${name},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 = $<TARGET_GENEX_EVAL:${name},$<TARGET_PROPERTY:${name},SOURCES>>\n"
|
||||
# " DEPS = ${_deps}\n"
|
||||
# " LINK_LIBRARIES = $<TARGET_GENEX_EVAL:${name},$<TARGET_PROPERTY:${name},LINK_LIBRARIES>>\n"
|
||||
# " MLIR_AGGREGATE_EXCLUDE_LIBS = $<TARGET_GENEX_EVAL:${name},$<TARGET_PROPERTY:${name},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.
|
||||
|
|
Loading…
Reference in New Issue