mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-06 10:44:41 +01:00
Move 'core' directory prefix (#4311)
This fixes a bit of sloppiness from #4305, the prefix should really be specified in one place.
This commit is contained in:
@@ -35,7 +35,7 @@ write_file(
|
||||
symlink_filegroup(
|
||||
name = "symlink_core",
|
||||
srcs = ["//core:prelude"],
|
||||
out_prefix = "prefix_root/lib/carbon/",
|
||||
out_prefix = "prefix_root/lib/carbon/core/",
|
||||
visibility = ["//visibility:private"],
|
||||
)
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@ def _symlink_filegroup_impl(ctx):
|
||||
# consistent paths across possible repositories.
|
||||
relative_path = f.short_path.removeprefix(f.owner.package)
|
||||
|
||||
out = ctx.actions.declare_file(prefix + "core/" + relative_path)
|
||||
out = ctx.actions.declare_file(prefix + relative_path)
|
||||
outputs.append(out)
|
||||
ctx.actions.symlink(output = out, target_file = f)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user