mirror of
https://github.com/allankoechke/rust.git
synced 2026-11-30 11:05:36 +00:00
-Ctarget-feature is not unsafe (any more)
This commit is contained in:
@@ -2335,10 +2335,12 @@ options! {
|
||||
parse_symbol_mangling_version, [TRACKED],
|
||||
"which mangling version to use for symbol names ('legacy', 'v0' (default), or 'hashed')"),
|
||||
target_cpu: Option<String> = (None, parse_opt_string, [TRACKED] { TARGET_MODIFIER: TargetCpu },
|
||||
"select target processor (`rustc --print target-cpus` for details)"),
|
||||
"select target processor (`rustc --print target-cpus` for details) \
|
||||
The resulting binary must only be executed on CPUs that have all the features \
|
||||
of the given CPU."),
|
||||
target_feature: String = (String::new(), parse_target_feature, [TRACKED],
|
||||
"target specific attributes. (`rustc --print target-features` for details). \
|
||||
This feature is unsafe."),
|
||||
"target-specific attributes (`rustc --print target-features` for details). \
|
||||
The resulting binary must only be executed on CPUs that have all the given features."),
|
||||
unsafe_allow_abi_mismatch: Vec<String> = (Vec::new(), parse_comma_list, [UNTRACKED],
|
||||
"Allow incompatible target modifiers in dependency crates (comma separated list)"),
|
||||
// tidy-alphabetical-end
|
||||
|
||||
Reference in New Issue
Block a user