diff options
author | Mikhail Glushenkov <foldr@codedgers.com> | 2010-02-13 22:37:13 +0000 |
---|---|---|
committer | Mikhail Glushenkov <foldr@codedgers.com> | 2010-02-13 22:37:13 +0000 |
commit | 49e496b1cc3b9e056dc760b2940f7a137ca08351 (patch) | |
tree | d196fe84431dbd5a202fd94ea23e27f60a4ad645 /tools/llvmc | |
parent | b88c6f6cdc36fc95ee0ac2473c2a5cd70afc65bd (diff) | |
download | external_llvm-49e496b1cc3b9e056dc760b2940f7a137ca08351.zip external_llvm-49e496b1cc3b9e056dc760b2940f7a137ca08351.tar.gz external_llvm-49e496b1cc3b9e056dc760b2940f7a137ca08351.tar.bz2 |
Support some more Darwin-only options.
We really need a conditional compilation mechanism...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@96129 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/llvmc')
-rw-r--r-- | tools/llvmc/plugins/Base/Base.td.in | 24 |
1 files changed, 22 insertions, 2 deletions
diff --git a/tools/llvmc/plugins/Base/Base.td.in b/tools/llvmc/plugins/Base/Base.td.in index 03d74eb..1acd969 100644 --- a/tools/llvmc/plugins/Base/Base.td.in +++ b/tools/llvmc/plugins/Base/Base.td.in @@ -96,7 +96,19 @@ def OptList : OptionList<[ (help "Pass options to opt")), (prefix_list_option "m", (help "Enable or disable various extensions (-mmmx, -msse, etc.)"), - (hidden)) + (hidden)), + (switch_option "dynamiclib", (hidden), + (help "Produce a dynamic library")), + (switch_option "prebind", (hidden), + (help "Prebind all undefined symbols")), + (switch_option "dead_strip", (hidden), + (help "Remove unreachable blocks of code")), + (switch_option "single_module", (hidden), + (help "Build the library so it contains only one module")), + (parameter_option "compatibility_version", (hidden), + (help "Compatibility version number")), + (parameter_option "current_version", (hidden), + (help "Current version number")) ]>; // Option preprocessor. @@ -239,7 +251,15 @@ class llvm_gcc_based_linker <string cmd_prefix> : Tool< (switch_on "m32"), (forward "m32"), (switch_on "m64"), (forward "m64"), (not_empty "l"), (forward "l"), - (not_empty "Wl,"), (forward "Wl,"))) + (not_empty "Wl,"), (forward "Wl,"), + (switch_on "dynamiclib"), (forward "dynamiclib"), + (switch_on "prebind"), (forward "prebind"), + (switch_on "dead_strip"), (forward "dead_strip"), + (switch_on "single_module"), (forward "single_module"), + (not_empty "compatibility_version"), + (forward "compatibility_version"), + (not_empty "current_version"), + (forward "current_version"))) ]>; // Default linker |