Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions GPU/GPUTracking/Base/metal/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,9 @@ if(METAL_ENABLED) # BUILD Metal source code for runtime compilation target
target_link_options(${targetName}
PRIVATE
"-Wl,-sectcreate,__DATA,__gpu_resource,${METAL_BIN}.ir")
# The linker reads the IR, so relink when it changes: otherwise a change to the
# kernels alone leaves the old code in the library.
set_property(TARGET ${targetName} APPEND PROPERTY LINK_DEPENDS ${METAL_BIN}.ir)
add_dependencies(${targetName} metal_preprocessed_code)
add_dependencies(${targetName} metal_intermediate_representation)
endif()
Expand Down
Loading