]> git.lizzy.rs Git - rust.git/commit
Fix the dependency for the pretty-rpass-full tests
authorRyan Prichard <ryan.prichard@gmail.com>
Fri, 17 Apr 2015 12:05:22 +0000 (05:05 -0700)
committerRyan Prichard <ryan.prichard@gmail.com>
Thu, 23 Apr 2015 03:26:19 +0000 (20:26 -0700)
commitb7ab2aeebddc927f8e4bc98093db57f2ba56844b
tree4634cf6486b211e2adc038a93283ed1084789bd3
parent7fbedc58e3b0e102ece926a7f99041fc3ad3037a
Fix the dependency for the pretty-rpass-full tests

The current code attempts to define the
PRETTY_DEPS$(1)_H_$(3)_pretty-rpass-full variable, which does not work,
because $(1) and $(3) are not inside a function. Moreover, there is a test
(run-pass-fulldeps/compiler-calls.rs) that uses rustc_driver, which is not
an indirect dependency of librustc or libsyntax. Listing all the
dependencies will be hard to maintain, but there's a better way to do
this...

As with the rpass-full and cfail-full tests, add dependencies using the
$$(CSREQ$(1)_T_$(3)_H_$(3)) variable, which includes the complete set of
host and target crates, built for a particular stage and host. We use
T_$(3), not T_$(2), because we only build LLVM for host triples (not
target triples), so we can only build rustc_llvm for host triples. The
fulldeps tests that use plugins need host rustc crates, whereas fulldeps
tests that link against rustc and run should be skipped for
cross-compilation (such as Android).

Fixes #22021
mk/tests.mk