diff options
author | Mikhail Glushenkov <foldr@codedgers.com> | 2009-04-21 19:46:10 +0000 |
---|---|---|
committer | Mikhail Glushenkov <foldr@codedgers.com> | 2009-04-21 19:46:10 +0000 |
commit | 4558f481b83a3c14ad5f1077b053a748a3203059 (patch) | |
tree | 4c57b74b9bbe4de19d3dba798f7a7db187dacaf7 /tools/llvmc | |
parent | 1d85a1f00bb9554873578d509b0b3aaf1d1d868f (diff) | |
download | external_llvm-4558f481b83a3c14ad5f1077b053a748a3203059.zip external_llvm-4558f481b83a3c14ad5f1077b053a748a3203059.tar.gz external_llvm-4558f481b83a3c14ad5f1077b053a748a3203059.tar.bz2 |
Support --with-llvmgccdir and friends in llvmc, take 2.
Should now work when building with objdir != srcdir and when llvm-gcc is not
available.
Thanks to Duncan Sands for testing and advice!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@69700 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/llvmc')
-rw-r--r-- | tools/llvmc/plugins/Base/Base.td.in (renamed from tools/llvmc/plugins/Base/Base.td) | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/tools/llvmc/plugins/Base/Base.td b/tools/llvmc/plugins/Base/Base.td.in index ec6f87c..757078a 100644 --- a/tools/llvmc/plugins/Base/Base.td +++ b/tools/llvmc/plugins/Base/Base.td.in @@ -80,10 +80,10 @@ class llvm_gcc_based <string cmd_prefix, string in_lang, string E_ext> : Tool< (sink) ]>; -def llvm_gcc_c : llvm_gcc_based<"llvm-gcc -x c", "c", "i">; -def llvm_gcc_cpp : llvm_gcc_based<"llvm-g++ -x c++", "c++", "i">; -def llvm_gcc_m : llvm_gcc_based<"llvm-gcc -x objective-c", "objective-c", "mi">; -def llvm_gcc_mxx : llvm_gcc_based<"llvm-gcc -x objective-c++", +def llvm_gcc_c : llvm_gcc_based<"@LLVMGCCCOMMAND@ -x c", "c", "i">; +def llvm_gcc_cpp : llvm_gcc_based<"@LLVMGXXCOMMAND@ -x c++", "c++", "i">; +def llvm_gcc_m : llvm_gcc_based<"@LLVMGCCCOMMAND@ -x objective-c", "objective-c", "mi">; +def llvm_gcc_mxx : llvm_gcc_based<"@LLVMGCCCOMMAND@ -x objective-c++", "objective-c++", "mi">; def opt : Tool< @@ -105,7 +105,7 @@ def llvm_gcc_assembler : Tool< [(in_language "assembler"), (out_language "object-code"), (output_suffix "o"), - (cmd_line "llvm-gcc -c -x assembler $INFILE -o $OUTFILE"), + (cmd_line "@LLVMGCCCOMMAND@ -c -x assembler $INFILE -o $OUTFILE"), (actions (case (switch_on "c"), (stop_compilation), (not_empty "Wa,"), (unpack_values "Wa,"))) @@ -136,9 +136,9 @@ class llvm_gcc_based_linker <string cmd_prefix> : Tool< ]>; // Default linker -def llvm_gcc_linker : llvm_gcc_based_linker<"llvm-gcc">; +def llvm_gcc_linker : llvm_gcc_based_linker<"@LLVMGCCCOMMAND@">; // Alternative linker for C++ -def llvm_gcc_cpp_linker : llvm_gcc_based_linker<"llvm-g++">; +def llvm_gcc_cpp_linker : llvm_gcc_based_linker<"@LLVMGXXCOMMAND@">; // Language map |