mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-09-24 19:10:14 +01:00
Support 'bazel run //examples:sieve' (#4185)
#4076 changed the rule setup and incidentally stopped supporting `bazel run`. This should make `bazel run` work again.
This commit is contained in:
@@ -58,7 +58,7 @@ def _carbon_binary_impl(ctx):
|
||||
mnemonic = "CarbonLink",
|
||||
progress_message = "Linking " + bin.short_path,
|
||||
)
|
||||
return [DefaultInfo(files = depset([bin]))]
|
||||
return [DefaultInfo(files = depset([bin]), executable = bin)]
|
||||
|
||||
_carbon_binary_internal = rule(
|
||||
implementation = _carbon_binary_impl,
|
||||
@@ -92,6 +92,7 @@ _carbon_binary_internal = rule(
|
||||
),
|
||||
"srcs": attr.label_list(allow_files = [".carbon"]),
|
||||
},
|
||||
executable = True,
|
||||
)
|
||||
|
||||
def carbon_binary(name, srcs):
|
||||
|
||||
Reference in New Issue
Block a user