# HG changeset patch # User Mike Hommey # Date 1553211360 0 # Node ID f3cbeb24bd86b9bb31e20db92ee5543321cf768e # Parent b0a5171fb2c920ea4d4744a0409cc88636f176ba Bug 1521734 - Print out the chosen rust host/target triplet during configure. r=chmanchester Differential Revision: https://phabricator.services.mozilla.com/D24323 diff --git a/build/moz.configure/rust.configure b/build/moz.configure/rust.configure --- a/build/moz.configure/rust.configure +++ b/build/moz.configure/rust.configure @@ -145,18 +145,21 @@ def rust_supported_targets(rustc): @template def rust_triple_alias(host_or_target): """Template defining the alias used for rustc's --target flag. `host_or_target` is either `host` or `target` (the @depends functions from init.configure). """ assert host_or_target in {host, target} + host_or_target_str = {host: 'host', target: 'target'}[host_or_target] + @depends(rustc, host_or_target, c_compiler, rust_supported_targets, when=rust_compiler) + @checking('for rust %s triplet' % host_or_target_str) @imports('os') @imports('subprocess') @imports(_from='mozbuild.configure.util', _import='LineIO') @imports(_from='mozbuild.shellutil', _import='quote') @imports(_from='tempfile', _import='mkstemp') @imports(_from='textwrap', _import='dedent') def rust_target(rustc, host_or_target, compiler_info, rust_supported_targets):