diff options
| author | Douglas Young <rcxdude@gmail.com> | 2014-04-17 16:52:25 +0100 |
|---|---|---|
| committer | Douglas Young <rcxdude@gmail.com> | 2014-04-23 20:33:54 +0100 |
| commit | 4ac89cd27613ffe574a6fc6009793c1900e5cfca (patch) | |
| tree | 6074687f891d2b332e0e6bc988fffc577f25cfaf /src/test/run-pass-fulldeps/phase-syntax-link-does-resolve.rs | |
| parent | 09bfb92fdc3ccff42dfcf91b0af368f88dc3e446 (diff) | |
| download | rust-4ac89cd27613ffe574a6fc6009793c1900e5cfca.tar.gz rust-4ac89cd27613ffe574a6fc6009793c1900e5cfca.zip | |
Enable use of syntax extensions when cross compiling.
This adds the target triple to the crate metadata. When searching for a crate the phase (link, syntax) is taken into account. During link phase only crates matching the target triple are considered. During syntax phase, either the target or host triple will be accepted, unless the crate defines a macro_registrar, in which case only the host triple will match.
Diffstat (limited to 'src/test/run-pass-fulldeps/phase-syntax-link-does-resolve.rs')
| -rw-r--r-- | src/test/run-pass-fulldeps/phase-syntax-link-does-resolve.rs | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/src/test/run-pass-fulldeps/phase-syntax-link-does-resolve.rs b/src/test/run-pass-fulldeps/phase-syntax-link-does-resolve.rs index 1700ceaec4f..b8d3ab23831 100644 --- a/src/test/run-pass-fulldeps/phase-syntax-link-does-resolve.rs +++ b/src/test/run-pass-fulldeps/phase-syntax-link-does-resolve.rs @@ -10,17 +10,10 @@ // aux-build:macro_crate_test.rs // ignore-stage1 -// ignore-android -// force-host - -// You'll note that there's lots of directives above. This is a very particular -// test in which we're both linking to a macro crate and loading macros from it. -// This implies that both versions are the host architecture, meaning this test -// must also be compiled with the host arch. +// ignore-cross-compile // -// because this doesn't work with that test runner, ignore-android because it -// can't run host binaries, and force-host to make this test build as the host -// arch. +// macro_crate_test will not compile on a cross-compiled target because +// libsyntax is not compiled for it. #![feature(phase)] |
