about summary refs log tree commit diff
path: root/src/test/codegen/integer-overflow.rs
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2020-05-16 19:46:36 +0200
committerGitHub <noreply@github.com>2020-05-16 19:46:36 +0200
commit4fe6d52d976e0468a70a2617f207c9ad893cdd3d (patch)
tree569b350363f89772087cab721afcabe62b4ea91a /src/test/codegen/integer-overflow.rs
parentae66c62245240eda5a60d0cf8b564f2b6c4e3875 (diff)
parent00dcb665e7ede908ba11638e8230340f396674f8 (diff)
downloadrust-4fe6d52d976e0468a70a2617f207c9ad893cdd3d.tar.gz
rust-4fe6d52d976e0468a70a2617f207c9ad893cdd3d.zip
Rollup merge of #72094 - petrochenkov:overfeature, r=nikic
cmdline: Make target features individually overridable

Fixes https://github.com/rust-lang/rust/issues/56527

Previously `-C target-feature=+avx2 -C target-feature=+fma` was equivalent to `-C target-feature=+fma` because the later `-C target-feature` option fully overridden previous `-C target-feature`.
With this PR `-C target-feature=+avx2 -C target-feature=+fma` is equivalent to `-C target-feature=+avx2,+fma` and the options are combined.

I'm not sure where the comma-separated features in a single option came from (clang uses a scheme with single feature per-option), but logically these features are entirely independent options.
So they should be overridable individually as well to be more useful in hierarchical build system, and more consistent with other rustc options and clang behavior as well.

Target feature options have a few other issues (https://github.com/rust-lang/rust/issues/44815), but fixing those is going to be a bit more invasive.
Diffstat (limited to 'src/test/codegen/integer-overflow.rs')
0 files changed, 0 insertions, 0 deletions