]> git.lizzy.rs Git - rust.git/commit
Only check --crate-type flags if present.
authorJustAPerson <jpriest8@ymail.com>
Sun, 13 Apr 2014 19:26:02 +0000 (14:26 -0500)
committerJustAPerson <jpriest8@ymail.com>
Mon, 14 Apr 2014 21:53:06 +0000 (16:53 -0500)
commit0162f8e6e16152224de4704ecd72d537c27046fe
treeeb0c8caec512bcebddb7607c90c7c263135f1baa
parentecc774f788ca3880ce76e4b87ac0d21a3a16d3ae
Only check --crate-type flags if present.

Before, normal compilation and the --crate-file-name flag would
generate output based on both #![crate_type] attributes and
--crate-type flags. Now, if one or more flag is specified by command
line, only those will be used.

Closes #11573.
src/doc/rust.md
src/librustc/driver/session.rs
src/test/run-make/obey-crate-type-flag/Makefile [new file with mode: 0644]
src/test/run-make/obey-crate-type-flag/test.rs [new file with mode: 0644]