Skip to content

Commit 0373146

Browse files
authored
Merge pull request #26 from dtolnay/sysrootlink
Include codegen in rlibs placed into output sysroot
2 parents 07e92a8 + 1fe7b67 commit 0373146

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stage1/defs.bzl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ def _sysroot_impl(ctx: AnalysisContext) -> list[Provider]:
8181
sysroot = {}
8282
for dep in rust_deps:
8383
strategy = dep.info.strategies[LinkStrategy("static_pic")]
84-
dep_metadata_kind = MetadataKind("full")
84+
dep_metadata_kind = MetadataKind("link")
8585
artifact = strategy.outputs[dep_metadata_kind]
8686
path = "lib/rustlib/{}/lib/{}".format(rustc_target_triple, artifact.basename)
8787
sysroot[path] = artifact

0 commit comments

Comments
 (0)