Skip to content

Commit 436abfa

Browse files
committed
Something broke in test selective build, partially undoing changes to find out what
1 parent ffdb21a commit 436abfa

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tools/cmake/Codegen.cmake

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,6 @@ function(generate_bindings_for_kernels)
103103
set(_out_dir ${CMAKE_CURRENT_BINARY_DIR}/${GEN_LIB_NAME})
104104
# By default selective build output is selected_operators.yaml
105105
set(_oplist_yaml ${_out_dir}/selected_operators.yaml)
106-
set(_opvariants_h ${_out_dir}/selected_op_variants.h)
107106

108107
# Command to codegen C++ wrappers to register custom ops to both PyTorch and
109108
# Executorch runtime.
@@ -144,13 +143,14 @@ function(generate_bindings_for_kernels)
144143
${_out_dir}/RegisterSchema.cpp ${_out_dir}/CustomOpsNativeFunctions.h
145144
)
146145
endif()
147-
146+
148147
add_custom_command(
149148
COMMENT "Generating code for kernel registration"
150149
OUTPUT ${_gen_command_sources}
151150
COMMAND ${_gen_command}
152-
DEPENDS ${_oplist_yaml} ${_opvariants_h} ${GEN_CUSTOM_OPS_YAML} ${GEN_FUNCTIONS_YAML}
153-
${_codegen_templates} ${_torchgen_srcs}
151+
DEPENDS ${_oplist_yaml} ${GEN_CUSTOM_OPS_YAML}
152+
${GEN_FUNCTIONS_YAML} ${_codegen_templates}
153+
${_torchgen_srcs}
154154
WORKING_DIRECTORY ${EXECUTORCH_ROOT}
155155
)
156156
# Make generated file list available in parent scope

0 commit comments

Comments
 (0)