File tree Expand file tree Collapse file tree 6 files changed +16
-13
lines changed
Expand file tree Collapse file tree 6 files changed +16
-13
lines changed Original file line number Diff line number Diff line change @@ -24,10 +24,10 @@ if(NOT RUNTIME_PATH)
2424 set (RUNTIME_PATH ${CMAKE_CURRENT_SOURCE_DIR} /runtime)
2525endif ()
2626
27- # Include this file to access target_link_options_shared_lib This is required to
28- # provide access to target_link_options_shared_lib which allows libraries to be
29- # linked with the --whole-archive flag. This is required for libraries that
30- # perform dynamic registration via static initialization.
27+ # Include this file to access executorch_target_link_options_shared_lib This is
28+ # required to provide access to executorch_target_link_options_shared_lib which
29+ # allows libraries to be linked with the --whole-archive flag. This is required
30+ # for libraries that perform dynamic registration via static initialization.
3131include (${EXECUTORCH_ROOT} /tools/cmake/Utils.cmake)
3232
3333include (cmake/ShaderLibrary.cmake)
@@ -113,7 +113,7 @@ target_include_directories(
113113target_link_libraries (vulkan_backend PRIVATE vulkan_schema executorch_core)
114114target_compile_options (vulkan_backend PRIVATE ${VULKAN_CXX_FLAGS} )
115115# Link this library with --whole-archive due to dynamic backend registration
116- target_link_options_shared_lib (vulkan_backend)
116+ executorch_target_link_options_shared_lib (vulkan_backend)
117117
118118set_property (TARGET vulkan_backend PROPERTY CXX_STANDARD 17)
119119
Original file line number Diff line number Diff line change @@ -81,7 +81,7 @@ function(vulkan_shader_lib library_name generated_spv_cpp)
8181 target_link_libraries (${library_name} vulkan_backend)
8282 target_compile_options (${library_name} PRIVATE ${VULKAN_CXX_FLAGS} )
8383 # Link this library with --whole-archive due to dynamic shader registrations
84- target_link_options_shared_lib (${library_name} )
84+ executorch_target_link_options_shared_lib (${library_name} )
8585endfunction ()
8686
8787# Convenience macro to generate a SPIR-V shader library target. Given the path
@@ -105,7 +105,7 @@ macro(vulkan_shader_library shaders_path library_name)
105105 target_link_libraries (${library_name} vulkan_backend)
106106 target_compile_options (${library_name} PRIVATE ${VULKAN_CXX_FLAGS} )
107107 # Link this library with --whole-archive due to dynamic shader registrations
108- target_link_options_shared_lib (${library_name} )
108+ executorch_target_link_options_shared_lib (${library_name} )
109109
110110 unset (VULKAN_SHADERGEN_ENV)
111111 unset (VULKAN_SHADERGEN_OUT_PATH)
Original file line number Diff line number Diff line change @@ -35,8 +35,8 @@ if(TARGET vulkan_backend)
3535 set (PYTHON_EXECUTABLE python3)
3636 endif ()
3737
38- # Include this file to access target_link_options_shared_lib This is required
39- # to provide access to target_link_options_shared_lib which allows libraries
38+ # Include this file to access executorch_target_link_options_shared_lib This is required
39+ # to provide access to executorch_target_link_options_shared_lib which allows libraries
4040 # to be linked with the --whole-archive flag. This is required for libraries
4141 # that perform dynamic registration via static initialization.
4242 include (${EXECUTORCH_ROOT} /tools/cmake/Utils.cmake)
@@ -75,7 +75,7 @@ if(TARGET vulkan_backend)
7575 ${CMAKE_CURRENT_SOURCE_DIR} /vulkan_compute_api_test.cpp
7676 )
7777
78- target_link_options_shared_lib (vulkan_backend)
78+ executorch_target_link_options_shared_lib (vulkan_backend)
7979
8080 add_executable (
8181 vulkan_compute_api_test ${COMPUTE_API_TEST_CPP} ${TEST_UTILS_CPP}
Original file line number Diff line number Diff line change @@ -29,8 +29,8 @@ if(NOT EXECUTORCH_ROOT)
2929 set (EXECUTORCH_ROOT ${CMAKE_CURRENT_SOURCE_DIR} /../../../..)
3030endif ()
3131
32- # Include this file to access target_link_options_shared_lib This is required to
33- # provide access to target_link_options_shared_lib which allows libraries to be
32+ # Include this file to access executorch_target_link_options_shared_lib This is required to
33+ # provide access to executorch_target_link_options_shared_lib which allows libraries to be
3434# linked with the --whole-archive flag. This is required for libraries that
3535# perform dynamic registration via static initialization.
3636include (${EXECUTORCH_ROOT} /tools/cmake/Utils.cmake)
@@ -66,7 +66,7 @@ set(COMMON_INCLUDES
6666 ${TORCH_BASE_PATH} /include /torch/csrc/api/include
6767)
6868
69- target_link_options_shared_lib (vulkan_backend)
69+ executorch_target_link_options_shared_lib (vulkan_backend)
7070
7171function (vulkan_op_test test_name test_src)
7272 set (extra_deps ${ARGN} )
Original file line number Diff line number Diff line change 77include (${PROJECT_SOURCE_DIR} /tools/cmake/preset/llm.cmake)
88
99set_overridable_option(EXECUTORCH_BUILD_EXECUTOR_RUNNER ON )
10+ set_overridable_option(EXECUTORCH_BUILD_EXTENSION_EVALUE_UTIL ON )
1011set_overridable_option(EXECUTORCH_BUILD_EXTENSION_RUNNER_UTIL ON )
Original file line number Diff line number Diff line change 66
77include (${PROJECT_SOURCE_DIR} /tools/cmake/preset/apple_common.cmake)
88
9+ set_overridable_option(EXECUTORCH_BUILD_EXTENSION_EVALUE_UTIL ON )
10+ set_overridable_option(EXECUTORCH_BUILD_EXTENSION_RUNNER_UTIL ON )
911set_overridable_option(EXECUTORCH_BUILD_EXECUTOR_RUNNER ON )
1012set_overridable_option(EXECUTORCH_COREML_BUILD_EXECUTOR_RUNNER ON )
You can’t perform that action at this time.
0 commit comments