Support .a files directly (without -l).

llvm-svn: 101789
This commit is contained in:
Mikhail Glushenkov 2010-04-19 17:25:38 +00:00
parent 25df2a75bd
commit 9cfb7051b6
1 changed files with 2 additions and 1 deletions

View File

@ -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"]>
]>;