Skip to content

Commit f44283b

Browse files
larryliu0820facebook-github-bot
authored andcommitted
Prepare schema/targets.bzl for OSS
Summary: This is part of an effort to enable Executorch OSS BUCK build. The decision on BUCK build file is to share existing targets.bzl (along with TARGETS) with OSS build. Therefore we want to reduce the cases where targets.bzl still need to load fbsource/fbcode only .bzl files. This diff cleans up unnecessary usage of `export_files.bzl` in `schema/targets.bzl`. Reviewed By: cccclai Differential Revision: D47441538 fbshipit-source-id: 48ad42115c6ad3dfb65dbd84c53340ba7fc1f47d
1 parent dd510a4 commit f44283b

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

schema/targets.bzl

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
load("@fbcode_macros//build_defs:export_files.bzl", "export_file")
21
load("@fbsource//xplat/executorch/build:runtime_wrapper.bzl", "runtime")
32

43
# Construct the input and output file names. All input and output files rely on scalar_type file.
@@ -53,20 +52,20 @@ def define_common_targets():
5352
TARGETS and BUCK files that call this function.
5453
"""
5554

56-
export_file(
55+
runtime.export_file(
5756
name = INPUT_PROGRAM,
5857
visibility = [
5958
"//executorch/exir/scripts/...",
6059
"//executorch/exir/serialize/...",
6160
],
6261
)
63-
export_file(
62+
runtime.export_file(
6463
name = INPUT_BUNDLED,
6564
visibility = [
6665
"//executorch/bundled_program/serialize/...",
6766
],
6867
)
69-
export_file(
68+
runtime.export_file(
7069
name = INPUT_SCALAR_TYPE,
7170
visibility = [
7271
"//executorch/bundled_program/serialize/...",

0 commit comments

Comments
 (0)