]> git.lizzy.rs Git - rust.git/commit
Build the same configuration when compiling and for `--print cfg`
authorAndrea Canciani <ranma42@gmail.com>
Wed, 2 Mar 2016 21:07:03 +0000 (22:07 +0100)
committerAndrea Canciani <ranma42@gmail.com>
Wed, 2 Mar 2016 21:07:03 +0000 (22:07 +0100)
commitc984cbd9397562f58d654a639923f16569b393ba
tree4a3e8b8817c6b35d7944b00d6f18d0bef70a8bb2
parent01daf90d5dea94e99dd4b5de57028024d3445d38
Build the same configuration when compiling and for `--print cfg`

The configuration returned by `config::build_configuration` needs to
be modified with `target_features::add_configuration` in order to also
contain the target features. This is already done for the
configuration used when compiling and when creating the documentation,
but was missing in the `cfg` printing code.
src/librustc_driver/lib.rs