rustc: Don't link in syntax extensions
This bug was introduced in #13384 by accident, and this commit continues the work of #13384 by finishing support for loading a syntax extension crate without registering it with the local cstore. Closes #13495
This commit is contained in:
parent
7240fad25e
commit
e163ab2151
10 changed files with 53 additions and 25 deletions
6
src/test/run-make/lto-syntax-extension/Makefile
Normal file
6
src/test/run-make/lto-syntax-extension/Makefile
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
-include ../tools.mk
|
||||
|
||||
all:
|
||||
$(RUSTC) lib.rs
|
||||
$(RUSTC) main.rs -Z lto
|
||||
$(call RUN,main)
|
||||
11
src/test/run-make/lto-syntax-extension/lib.rs
Normal file
11
src/test/run-make/lto-syntax-extension/lib.rs
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
|
||||
// file at the top-level directory of this distribution and at
|
||||
// http://rust-lang.org/COPYRIGHT.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
|
||||
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
|
||||
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
|
||||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
#[crate_type = "rlib"];
|
||||
18
src/test/run-make/lto-syntax-extension/main.rs
Normal file
18
src/test/run-make/lto-syntax-extension/main.rs
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
|
||||
// file at the top-level directory of this distribution and at
|
||||
// http://rust-lang.org/COPYRIGHT.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
|
||||
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
|
||||
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
|
||||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
#![feature(phase)]
|
||||
|
||||
extern crate lib;
|
||||
#[phase(syntax)] extern crate fourcc;
|
||||
|
||||
fn main() {
|
||||
fourcc!("1234");
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue