rustc: Remove broken --depend flag
This commit is contained in:
parent
bdd358e26e
commit
83219269d5
3 changed files with 0 additions and 10 deletions
|
@ -246,7 +246,6 @@ options:
|
||||||
--ls list the symbols defined by a crate file
|
--ls list the symbols defined by a crate file
|
||||||
-L <path> add a directory to the library search path
|
-L <path> add a directory to the library search path
|
||||||
--noverify suppress LLVM verification step (slight speedup)
|
--noverify suppress LLVM verification step (slight speedup)
|
||||||
--depend print dependencies, in makefile-rule form
|
|
||||||
--parse-only parse only; do not compile, assemble, or link
|
--parse-only parse only; do not compile, assemble, or link
|
||||||
--no-trans run all passes except translation; no output
|
--no-trans run all passes except translation; no output
|
||||||
-g produce debug info
|
-g produce debug info
|
||||||
|
|
|
@ -8,14 +8,9 @@ import syntax::parse::parser::{parser, new_parser_from_file,
|
||||||
parse_mod_items, SOURCE_FILE};
|
parse_mod_items, SOURCE_FILE};
|
||||||
|
|
||||||
export eval_crate_directives_to_mod;
|
export eval_crate_directives_to_mod;
|
||||||
export mode_parse;
|
|
||||||
|
|
||||||
tag eval_mode { mode_depend; mode_parse; }
|
|
||||||
|
|
||||||
type ctx =
|
type ctx =
|
||||||
@{p: parser,
|
@{p: parser,
|
||||||
mode: eval_mode,
|
|
||||||
mutable deps: [str],
|
|
||||||
sess: parser::parse_sess,
|
sess: parser::parse_sess,
|
||||||
mutable chpos: uint,
|
mutable chpos: uint,
|
||||||
mutable byte_pos: uint,
|
mutable byte_pos: uint,
|
||||||
|
@ -48,7 +43,6 @@ fn eval_crate_directive(cx: ctx, cdir: @ast::crate_directive, prefix: str,
|
||||||
if std::fs::path_is_absolute(file_path) {
|
if std::fs::path_is_absolute(file_path) {
|
||||||
file_path
|
file_path
|
||||||
} else { prefix + std::fs::path_sep() + file_path };
|
} else { prefix + std::fs::path_sep() + file_path };
|
||||||
if cx.mode == mode_depend { cx.deps += [full_path]; ret; }
|
|
||||||
let p0 =
|
let p0 =
|
||||||
new_parser_from_file(cx.sess, cx.cfg, full_path, cx.chpos,
|
new_parser_from_file(cx.sess, cx.cfg, full_path, cx.chpos,
|
||||||
cx.byte_pos, SOURCE_FILE);
|
cx.byte_pos, SOURCE_FILE);
|
||||||
|
|
|
@ -2584,11 +2584,8 @@ fn parse_crate_from_crate_file(input: str, cfg: ast::crate_cfg,
|
||||||
let crate_attrs = leading_attrs.inner;
|
let crate_attrs = leading_attrs.inner;
|
||||||
let first_cdir_attr = leading_attrs.next;
|
let first_cdir_attr = leading_attrs.next;
|
||||||
let cdirs = parse_crate_directives(p, token::EOF, first_cdir_attr);
|
let cdirs = parse_crate_directives(p, token::EOF, first_cdir_attr);
|
||||||
let deps: [str] = [];
|
|
||||||
let cx =
|
let cx =
|
||||||
@{p: p,
|
@{p: p,
|
||||||
mode: eval::mode_parse,
|
|
||||||
mutable deps: deps,
|
|
||||||
sess: sess,
|
sess: sess,
|
||||||
mutable chpos: p.get_chpos(),
|
mutable chpos: p.get_chpos(),
|
||||||
mutable byte_pos: p.get_byte_pos(),
|
mutable byte_pos: p.get_byte_pos(),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue