diff options
author | Mikhail Glushenkov <foldr@codedgers.com> | 2010-04-19 17:25:38 +0000 |
---|---|---|
committer | Mikhail Glushenkov <foldr@codedgers.com> | 2010-04-19 17:25:38 +0000 |
commit | c1b202a2b82c1edf7b70654fef8089cacb992a82 (patch) | |
tree | 1905ee18f0793f3937e8f208ea153cf298e62576 /tools/llvmc | |
parent | d6cc53cfe4ac1978e591d14867b39744463356c0 (diff) |
Support .a files directly (without -l).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@101789 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/llvmc')
-rw-r--r-- | tools/llvmc/plugins/Base/Base.td.in | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/llvmc/plugins/Base/Base.td.in b/tools/llvmc/plugins/Base/Base.td.in index 3c4f4e9595..e04970fa5a 100644 --- a/tools/llvmc/plugins/Base/Base.td.in +++ b/tools/llvmc/plugins/Base/Base.td.in @@ -263,7 +263,7 @@ def llc : Tool< // Base class for linkers class llvm_gcc_based_linker <string cmd_prefix> : Tool< -[(in_language "object-code"), +[(in_language ["object-code", "static-library"]), (out_language "executable"), (output_suffix "out"), (command cmd_prefix), @@ -317,6 +317,7 @@ def LanguageMap : LanguageMap< LangToSuffixes<"llvm-assembler", ["ll"]>, LangToSuffixes<"llvm-bitcode", ["bc"]>, LangToSuffixes<"object-code", ["o", "*empty*"]>, + LangToSuffixes<"static-library", ["a", "lib"]>, LangToSuffixes<"executable", ["out"]> ]>; |