auto merge of #13340 : FlaPer87/rust/code-model, r=cmr
Rust currently defaults to `RelocPIC` regardless. This patch adds a new
codegen option that allows choosing different relocation-model. The
available models are:
- default (Use the target-specific default model)
- static
- pic
- no-pic
For a more detailed information use `llc --help`
This commit is contained in:
commit
02c81fe2b5
5 changed files with 43 additions and 1 deletions
|
|
@ -36,6 +36,7 @@ _rustc_opts_switches=(
|
|||
--target'[Target triple cpu-manufacturer-kernel\[-os\] to compile]'
|
||||
--target-cpu'[Select target processor (llc -mcpu=help for details)]'
|
||||
--target-feature'[Target specific attributes (llc -mattr=help for details)]'
|
||||
--relocation-model'[Relocation model (llc --help for details)]'
|
||||
{-v,--version}'[Print version info and exit]'
|
||||
)
|
||||
_rustc_opts_lint=(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue