Skip to content

Commit

Permalink
Use cc_toolchain.linker_files instead of cc_toolchain.all_files for l…
Browse files Browse the repository at this point in the history
…inking deps
  • Loading branch information
Vinh Tran committed Sep 21, 2023
1 parent 3e35d10 commit d69562e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rust/private/rustc.bzl
Expand Up @@ -670,7 +670,7 @@ def collect_inputs(
"""
linker_script = getattr(file, "linker_script") if hasattr(file, "linker_script") else None

linker_depset = cc_toolchain.all_files
linker_depset = cc_toolchain.linker_files()
compilation_mode = ctx.var["COMPILATION_MODE"]

use_pic = _should_use_pic(cc_toolchain, feature_configuration, crate_info.type, compilation_mode)
Expand Down

0 comments on commit d69562e

Please sign in to comment.