Lines Matching full:rustc
21 # This script wraps rustc for (currently) these reasons:
32 # rustc invocations are given access to {{rustflags}} and {{ldflags}}.
33 # We want to pass {{ldflags}} into rustc, using -Clink-args="{{ldflags}}".
39 # arguments to rustc.
44 # (using the env! macro), rustc spots that and adds it to the .d file.
66 # rustc_wrapper.py --rustc <path to rustc> --depfile <path to .d file>
67 # -- <normal rustc args> LDFLAGS {{ldflags}} RUSTENV {{rustenv}}
71 # variables to pass to rustc (and which will be removed from the .d file).
76 # TODO(https://github.com/rust-lang/rust/issues/73632): avoid using rustc
79 # must currently be created by rustc (e.g. unit test executables). As
80 # part of support for using non-rustc linkers, we should arrange to extract
81 # such functionality from rustc so that we can make all types of binary
96 """Verify everything used by rustc (found in `depline`) was specified in the
100 rustc since third-party packages sources need to be a union of all build
116 # Collect the files that rustc says are needed.
130 # exact path that rustc produces for easier debugging and writing of stdlib
141 parser.add_argument('--rustc', required=True, type=pathlib.Path)
182 # rustc needs the rsp file to be separated by newlines. Note that GN
198 args.rustc, shlex.join(rustc_args))
199 r = subprocess.run([args.rustc, *rustc_args], env=env, check=False)