mirror of
https://github.com/rust-lang/rust.git
synced 2025-01-23 21:23:20 +00:00
Remove unnecessary dependencies on rustc_llvm.
This commit is contained in:
parent
cad964a626
commit
352b44d1fa
@ -94,9 +94,9 @@ DEPS_syntax_ext := syntax fmt_macros
|
||||
DEPS_rustc_const_eval := std syntax
|
||||
|
||||
DEPS_rustc := syntax fmt_macros flate arena serialize getopts rbml rustc_front\
|
||||
log graphviz rustc_llvm rustc_back rustc_data_structures\
|
||||
log graphviz rustc_back rustc_data_structures\
|
||||
rustc_const_eval
|
||||
DEPS_rustc_back := std syntax rustc_llvm rustc_front flate log libc
|
||||
DEPS_rustc_back := std syntax rustc_front flate log libc
|
||||
DEPS_rustc_borrowck := rustc rustc_front rustc_mir log graphviz syntax
|
||||
DEPS_rustc_data_structures := std log serialize
|
||||
DEPS_rustc_driver := arena flate getopts graphviz libc rustc rustc_back rustc_borrowck \
|
||||
|
@ -21,6 +21,5 @@ rustc_bitflags = { path = "../librustc_bitflags" }
|
||||
rustc_const_eval = { path = "../librustc_const_eval" }
|
||||
rustc_data_structures = { path = "../librustc_data_structures" }
|
||||
rustc_front = { path = "../librustc_front" }
|
||||
rustc_llvm = { path = "../librustc_llvm" }
|
||||
serialize = { path = "../libserialize" }
|
||||
syntax = { path = "../libsyntax" }
|
||||
|
@ -50,7 +50,6 @@ extern crate getopts;
|
||||
extern crate graphviz;
|
||||
extern crate libc;
|
||||
extern crate rbml;
|
||||
pub extern crate rustc_llvm as llvm;
|
||||
extern crate rustc_back;
|
||||
extern crate rustc_front;
|
||||
extern crate rustc_data_structures;
|
||||
@ -140,10 +139,6 @@ pub mod util {
|
||||
pub mod fs;
|
||||
}
|
||||
|
||||
pub mod lib {
|
||||
pub use llvm;
|
||||
}
|
||||
|
||||
// A private module so that macro-expanded idents like
|
||||
// `::rustc::lint::Lint` will also work in `rustc` itself.
|
||||
//
|
||||
|
@ -38,8 +38,6 @@ use std::env;
|
||||
use std::fmt;
|
||||
use std::path::PathBuf;
|
||||
|
||||
use llvm;
|
||||
|
||||
pub struct Config {
|
||||
pub target: Target,
|
||||
pub int_type: IntTy,
|
||||
@ -1052,10 +1050,6 @@ pub fn build_session_options(matches: &getopts::Matches) -> Options {
|
||||
let dump_dep_graph = debugging_opts.dump_dep_graph;
|
||||
let no_analysis = debugging_opts.no_analysis;
|
||||
|
||||
if debugging_opts.debug_llvm {
|
||||
unsafe { llvm::LLVMSetDebug(1); }
|
||||
}
|
||||
|
||||
let mut output_types = HashMap::new();
|
||||
if !debugging_opts.parse_only && !no_trans {
|
||||
for list in matches.opt_strs("emit") {
|
||||
|
@ -11,7 +11,6 @@ crate-type = ["dylib"]
|
||||
[dependencies]
|
||||
syntax = { path = "../libsyntax" }
|
||||
serialize = { path = "../libserialize" }
|
||||
rustc_llvm = { path = "../librustc_llvm" }
|
||||
rustc_front = { path = "../librustc_front" }
|
||||
log = { path = "../liblog" }
|
||||
|
||||
|
@ -45,7 +45,6 @@
|
||||
extern crate syntax;
|
||||
extern crate libc;
|
||||
extern crate serialize;
|
||||
extern crate rustc_llvm;
|
||||
extern crate rustc_front;
|
||||
#[macro_use] extern crate log;
|
||||
|
||||
|
@ -166,6 +166,10 @@ pub fn run_compiler<'a>(args: &[String],
|
||||
|
||||
let sopts = config::build_session_options(&matches);
|
||||
|
||||
if sopts.debugging_opts.debug_llvm {
|
||||
unsafe { llvm::LLVMSetDebug(1); }
|
||||
}
|
||||
|
||||
let descriptions = diagnostics_registry();
|
||||
|
||||
do_or_return!(callbacks.early_callback(&matches,
|
||||
|
@ -9,5 +9,4 @@ path = "lib.rs"
|
||||
crate-type = ["dylib"]
|
||||
|
||||
[dependencies]
|
||||
rustc_llvm = { path = "../librustc_llvm" }
|
||||
rustc = { path = "../librustc" }
|
||||
|
@ -16,7 +16,6 @@
|
||||
#![cfg_attr(not(stage0), deny(warnings))]
|
||||
#![allow(bad_style)]
|
||||
|
||||
extern crate rustc_llvm as llvm;
|
||||
extern crate rustc;
|
||||
|
||||
use rustc::ty::TyCtxt;
|
||||
|
@ -16,6 +16,7 @@ extern crate rustc;
|
||||
extern crate rustc_driver;
|
||||
extern crate rustc_front;
|
||||
extern crate rustc_lint;
|
||||
extern crate rustc_llvm as llvm;
|
||||
extern crate rustc_metadata;
|
||||
extern crate rustc_resolve;
|
||||
#[macro_use] extern crate syntax;
|
||||
@ -28,7 +29,6 @@ use std::thread::Builder;
|
||||
|
||||
use rustc::dep_graph::DepGraph;
|
||||
use rustc::front::map as ast_map;
|
||||
use rustc::llvm;
|
||||
use rustc::middle::cstore::{CrateStore, LinkagePreference};
|
||||
use rustc::ty;
|
||||
use rustc::session::config::{self, basic_options, build_configuration, Input, Options};
|
||||
|
Loading…
Reference in New Issue
Block a user