diff options
author | Sanjiv Gupta <sanjiv.gupta@microchip.com> | 2009-07-13 10:56:29 +0000 |
---|---|---|
committer | Sanjiv Gupta <sanjiv.gupta@microchip.com> | 2009-07-13 10:56:29 +0000 |
commit | f935dcc26a9c30f14ae07fa0aaf27dd2cd802cbe (patch) | |
tree | 514a35827b80167bad7a9398b37ed675faba22ad /tools/llvmc | |
parent | 7a80f5f825a037c6247509ecea82028a73028fc5 (diff) | |
download | external_llvm-f935dcc26a9c30f14ae07fa0aaf27dd2cd802cbe.zip external_llvm-f935dcc26a9c30f14ae07fa0aaf27dd2cd802cbe.tar.gz external_llvm-f935dcc26a9c30f14ae07fa0aaf27dd2cd802cbe.tar.bz2 |
allow mcc16 users to specify --save-temps even though it is hidden by mcc16.
link libstd.so with llvm-ld by default with all the programs user is trying to build.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75460 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/llvmc')
-rw-r--r-- | tools/llvmc/example/mcc16/driver/Main.cpp | 1 | ||||
-rw-r--r-- | tools/llvmc/example/mcc16/plugins/PIC16Base/PIC16Base.td | 2 |
2 files changed, 1 insertions, 2 deletions
diff --git a/tools/llvmc/example/mcc16/driver/Main.cpp b/tools/llvmc/example/mcc16/driver/Main.cpp index 55e948a..f42e17f 100644 --- a/tools/llvmc/example/mcc16/driver/Main.cpp +++ b/tools/llvmc/example/mcc16/driver/Main.cpp @@ -25,7 +25,6 @@ int main(int argc, char** argv) { // HACK SaveTemps.setHiddenFlag(llvm::cl::Hidden); - SaveTemps = SaveTempsEnum::Unset; TempDirname = "tmp-objs"; // Remove the temp dir if already exists. diff --git a/tools/llvmc/example/mcc16/plugins/PIC16Base/PIC16Base.td b/tools/llvmc/example/mcc16/plugins/PIC16Base/PIC16Base.td index 4e88a91..5086524 100644 --- a/tools/llvmc/example/mcc16/plugins/PIC16Base/PIC16Base.td +++ b/tools/llvmc/example/mcc16/plugins/PIC16Base/PIC16Base.td @@ -55,7 +55,7 @@ def llvm_ld_lto : Tool<[ (in_language "llvm-bitcode"), (out_language "llvm-bitcode"), (output_suffix "bc"), - (cmd_line "$CALL(GetBinDir)llvm-ld -link-as-library std.lib $INFILE -o $OUTFILE"), + (cmd_line "$CALL(GetBinDir)llvm-ld -L $CALL(GetStdLibsDir) -l std $INFILE -o $OUTFILE"), (actions (case (switch_on "g"), (append_cmd "-disable-opt"), (not_empty "Wo,"), (unpack_values "Wo,"))), |