@@ -66,7 +66,7 @@ def vulkan_spv_shader_lib(name, spv_filegroups, is_fbcode = False, no_volk = Fal
66
66
compiler_flags = get_vulkan_compiler_flags (),
67
67
labels = get_labels (no_volk ),
68
68
platforms = get_platforms (no_volk ),
69
- define_static_target = False ,
69
+ define_static_target = True ,
70
70
# Static initialization is used to register shaders to the global shader registry,
71
71
# therefore link_whole must be True to make sure unused symbols are not discarded.
72
72
# @lint-ignore BUCKLINT: Avoid `link_whole=True`
@@ -197,7 +197,7 @@ def define_common_targets(is_fbcode = False):
197
197
exported_deps = [
198
198
":vulkan_graph_runtime_shaderlib{}" .format (suffix ),
199
199
],
200
- define_static_target = False ,
200
+ define_static_target = True ,
201
201
# Static initialization is used to register operators to the global operator registry,
202
202
# therefore link_whole must be True to make sure unused symbols are not discarded.
203
203
# @lint-ignore BUCKLINT: Avoid `link_whole=True`
@@ -215,7 +215,6 @@ def define_common_targets(is_fbcode = False):
215
215
no_volk = no_volk ,
216
216
)
217
217
218
-
219
218
runtime .cxx_library (
220
219
name = "vulkan_backend_lib{}" .format (suffix ),
221
220
srcs = native .glob ([
@@ -240,7 +239,7 @@ def define_common_targets(is_fbcode = False):
240
239
"//executorch/runtime/backend:interface" ,
241
240
"//executorch/runtime/core/exec_aten/util:tensor_util" ,
242
241
],
243
- define_static_target = False ,
242
+ define_static_target = True ,
244
243
# VulkanBackend.cpp needs to compile with executor as whole
245
244
# @lint-ignore BUCKLINT: Avoid `link_whole=True` (https://fburl.com/avoid-link-whole)
246
245
link_whole = True ,
0 commit comments