diff options
author | Egor Bogatov <egorbo@gmail.com> | 2018-11-06 16:05:40 +0300 |
---|---|---|
committer | monojenkins <jo.shields+jenkins@xamarin.com> | 2018-11-06 16:05:40 +0300 |
commit | 14cb53030d1bbfbba7e90e1b2c53654a104bfdca (patch) | |
tree | 4659dc9af6dda02cd8a83ab5c8f1fb7600aba125 /man | |
parent | ce08c3263264559b9312e791db265ca951fab59c (diff) |
Don't override default LLVM's opt & llc args via llvmopts-add and llvmllc-add commands (#11556)
Don't override default LLVM's opt & llc args via llvmopts-add and llvmllc-add commands
Currently we can pass custom arguments to LLVM's `opt` and `llc` via:
```
mono --aot=llvm,llvmopts="...",llvmllc="..."
```
but those completely override the default arguments mono uses (some of them are required).
E.g. lets say I need to add `-foo` to both opt and llc, I should do:
```
mono --aot=llvm,llvmllc="**-foo** -march=x86-64 -mattr=sse4.1 -asm-verbose=false
-disable-gnu-eh-frame -enable-mono-eh-frame -mono-eh-frame-symbol=_mono_aot_p_eh_frame
-disable-tail-calls -no-x86-call-frame-opt -relocation-model=pic
-filetype=obj,llvmopts="**-foo** -O2 -disable-tail-calls"
```
So this PR introduces new commands `llvmopts-add` and `llvmllc-add` to be able to simply do:
`mono --aot=llvm,llvmopts-add="-foo",llvmllc-add="-foo"`
PS: let me know if you don't like the `-add` suffix
/cc: @migueldeicaza
Diffstat (limited to 'man')
-rw-r--r-- | man/mono.1 | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/man/mono.1 b/man/mono.1 index 9b7f16116c4..a0a205a9bbb 100644 --- a/man/mono.1 +++ b/man/mono.1 @@ -215,14 +215,14 @@ and options. This feature is experimental. .TP .I llvmopts=[options] -Use this option to override the built-in set of flags passed to the +Use this option to add more flags to the built-in set of flags passed to the LLVM optimizer. The list of possible flags that can be passed can be obtained by calling the bundled .I opt program that comes with Mono. .TP .I llvmllc=[options] -Use this option to override the built-in set of flags passed to the +Use this option to add more flags to the built-in set of flags passed to the LLVM static compiler (llc). The list of possible flags that can be passed can be obtained by calling the bundled .I llc |