Skip to content

Commit ca7f1b1

Browse files
authored
feat: new ecsact_binary attr to allow unresolved imports (#62)
1 parent c6e02b5 commit ca7f1b1

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

ecsact/private/ecsact_binary.bzl

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,8 @@ def _ecsact_binary_impl(ctx):
8080

8181
args.add("--compiler_config", compiler_config_file)
8282

83-
if len(ctx.files.recipes) > 1:
84-
fail("Only 1 recipe is allowed at this time")
83+
if ctx.attr.allow_unresolved_imports:
84+
args.add("--allow-unresolved-imports")
8585

8686
inputs.extend(ctx.files.srcs)
8787
inputs.extend(ctx.files.recipes)
@@ -161,6 +161,10 @@ _ecsact_binary = rule(
161161
"linkopts": attr.string_list(
162162
mandatory = False,
163163
),
164+
"allow_unresolved_imports": attr.bool(
165+
mandatory = False,
166+
default = False,
167+
),
164168
},
165169
toolchains = ["//ecsact:toolchain_type"] + use_cc_toolchain(),
166170
fragments = ["cpp"],

0 commit comments

Comments
 (0)