summaryrefslogtreecommitdiff
path: root/tools/llvmc
diff options
context:
space:
mode:
authorMikhail Glushenkov <foldr@codedgers.com>2010-04-03 02:00:03 +0000
committerMikhail Glushenkov <foldr@codedgers.com>2010-04-03 02:00:03 +0000
commitcbf1aa9e31ed4ca15756c6b8db41c51320916dc5 (patch)
treec59dbdb5fa0f81a4db443b8080e73c8561ae25e8 /tools/llvmc
parentb7aaed83e2f51769c54d9b0c46fc22cb429881c2 (diff)
downloadllvm-cbf1aa9e31ed4ca15756c6b8db41c51320916dc5.tar.gz
llvm-cbf1aa9e31ed4ca15756c6b8db41c51320916dc5.tar.bz2
llvm-cbf1aa9e31ed4ca15756c6b8db41c51320916dc5.tar.xz
Pass -shared to the linker.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100260 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/llvmc')
-rw-r--r--tools/llvmc/plugins/Base/Base.td.in3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/llvmc/plugins/Base/Base.td.in b/tools/llvmc/plugins/Base/Base.td.in
index 3ad07c0d83..3c4f4e9595 100644
--- a/tools/llvmc/plugins/Base/Base.td.in
+++ b/tools/llvmc/plugins/Base/Base.td.in
@@ -46,6 +46,8 @@ def OptList : OptionList<[
(help "Relocation model: PIC"), (hidden)),
(switch_option "mdynamic-no-pic",
(help "Relocation model: dynamic-no-pic"), (hidden)),
+ (switch_option "shared",
+ (help "Create a DLL instead of the regular executable")),
(parameter_option "linker",
(help "Choose linker (possible values: gcc, g++)")),
(parameter_option "mtune",
@@ -281,6 +283,7 @@ class llvm_gcc_based_linker <string cmd_prefix> : Tool<
(not_empty "l"), (forward "l"),
(not_empty "Xlinker"), (forward "Xlinker"),
(not_empty "Wl,"), (forward "Wl,"),
+ (switch_on "shared"), (forward "shared"),
(switch_on "dynamiclib"), (forward "dynamiclib"),
(switch_on "prebind"), (forward "prebind"),
(switch_on "dead_strip"), (forward "dead_strip"),