Skip to content

Commit 7508d07

Browse files
cccclaifacebook-github-bot
authored andcommitted
add command_alias in runtime_wrapper
Differential Revision: D63570326
1 parent 48d586c commit 7508d07

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

shim/xplat/executorch/build/env_interface.bzl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,7 @@ env = struct(
217217
filegroup = native.filegroup,
218218
# @lint-ignore BUCKLINT: native and fb_native are explicitly forbidden in fbcode.
219219
genrule = native.genrule,
220+
command_alias = native.command_alias,
220221
is_oss = True,
221222
is_xplat = lambda: False,
222223
patch_deps = _patch_deps,

shim/xplat/executorch/build/runtime_wrapper.bzl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -301,6 +301,10 @@ def _filegroup(*args, **kwargs):
301301
_patch_kwargs_common(kwargs)
302302
env.filegroup(*args, **kwargs)
303303

304+
def _command_alias(*args, **kwargs):
305+
_patch_kwargs_common(kwargs)
306+
env.command_alias(*args, **kwargs)
307+
304308
def _genrule(*args, **kwargs):
305309
_patch_kwargs_common(kwargs)
306310
env.patch_platforms(kwargs)
@@ -353,6 +357,7 @@ runtime = struct(
353357
external_dep_location = _external_dep_location,
354358
filegroup = _filegroup,
355359
genrule = _genrule,
360+
command_alias = _command_alias,
356361
is_oss = env.is_oss,
357362
python_binary = _python_binary,
358363
python_library = _python_library,

0 commit comments

Comments
 (0)