We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ab32ede commit b3c8badCopy full SHA for b3c8bad
rust/private/rustc.bzl
@@ -229,6 +229,7 @@ def rustc_compile_action(
229
output_dir,
230
"--emit=dep-info,link",
231
"--color always",
232
+ "--target=" + toolchain.target_triple,
233
] +
234
["--codegen link-arg='-Wl,-rpath={}'".format(rpath) for rpath in rpaths] +
235
features_flags +
rust/toolchain.bzl
@@ -22,6 +22,8 @@ def _rust_toolchain_impl(ctx):
22
rust_lib = _get_files(ctx.attr.rust_lib),
23
staticlib_ext = ctx.attr.staticlib_ext,
24
dylib_ext = ctx.attr.dylib_ext,
25
+ target_triple = ctx.attr.target_triple,
26
+ exec_triple = ctx.attr.exec_triple,
27
os = ctx.attr.os,
28
compilation_mode_opts = compilation_mode_opts,
29
crosstool_files = ctx.files._crosstool,
0 commit comments