Skip to content
Closed
Show file tree
Hide file tree
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
2 changes: 2 additions & 0 deletions shim/xplat/executorch/build/env_interface.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,8 @@ def _struct_to_json(object):
return native.json.encode(object)

env = struct(
# @lint-ignore BUCKLINT: native and fb_native are explicitly forbidden in fbcode.
command_alias = native.command_alias,
# @lint-ignore BUCKLINT: native and fb_native are explicitly forbidden in fbcode.
cxx_binary = native.cxx_binary,
# @lint-ignore BUCKLINT: native and fb_native are explicitly forbidden in fbcode.
Expand Down
5 changes: 5 additions & 0 deletions shim/xplat/executorch/build/runtime_wrapper.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,10 @@ def _filegroup(*args, **kwargs):
_patch_kwargs_common(kwargs)
env.filegroup(*args, **kwargs)

def _command_alias(*args, **kwargs):
_patch_kwargs_common(kwargs)
env.command_alias(*args, **kwargs)

def _genrule(*args, **kwargs):
_patch_kwargs_common(kwargs)
env.patch_platforms(kwargs)
Expand Down Expand Up @@ -345,6 +349,7 @@ def get_oss_build_kwargs():
# see the "Build Rules" section in the sidebar of
# https://buck.build/concept/build_rule.html.
runtime = struct(
command_alias = _command_alias,
cxx_binary = _cxx_binary,
cxx_library = _cxx_library,
cxx_python_extension = _cxx_python_extension,
Expand Down
Loading