Lines Matching full:rustc
20 # This script wraps rustc for (currently) these reasons:
31 # rustc invocations are given access to {{rustflags}} and {{ldflags}}.
32 # We want to pass {{ldflags}} into rustc, using -Clink-args="{{ldflags}}".
38 # arguments to rustc.
43 # (using the env! macro), rustc spots that and adds it to the .d file.
65 # rustc_wrapper.py --rustc <path to rustc> --depfile <path to .d file>
66 # -- <normal rustc args> LDFLAGS {{ldflags}} RUSTENV {{rustenv}}
70 # variables to pass to rustc (and which will be removed from the .d file).
75 # TODO(https://github.com/rust-lang/rust/issues/73632): avoid using rustc
78 # must currently be created by rustc (e.g. unit test executables). As
79 # part of support for using non-rustc linkers, we should arrange to extract
80 # such functionality from rustc so that we can make all types of binary
94 parser.add_argument('--rustc', required=True, type=pathlib.Path)
135 r = subprocess.run([args.rustc, *rustc_args], env=env, check=False)