Add the relocation_model to the cfg
This way is possible to write inline assembly code aware of it.
This commit is contained in:
parent
2ceed0b6cb
commit
c0394c8ac0
8 changed files with 86 additions and 12 deletions
|
@ -35,6 +35,7 @@ const GATED_CFGS: &[GatedCfg] = &[
|
|||
(sym::target_has_atomic_load_store, sym::cfg_target_has_atomic, cfg_fn!(cfg_target_has_atomic)),
|
||||
(sym::sanitize, sym::cfg_sanitize, cfg_fn!(cfg_sanitize)),
|
||||
(sym::version, sym::cfg_version, cfg_fn!(cfg_version)),
|
||||
(sym::relocation_model, sym::cfg_relocation_model, cfg_fn!(cfg_relocation_model)),
|
||||
];
|
||||
|
||||
/// Find a gated cfg determined by the `pred`icate which is given the cfg's name.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue