[llvm-commits] [llvm] r75460 - in /llvm/trunk/tools/llvmc/example/mcc16: driver/Main.cpp plugins/PIC16Base/PIC16Base.td
Sanjiv Gupta
sanjiv.gupta at microchip.com
Mon Jul 13 03:56:42 PDT 2009
Author: sgupta
Date: Mon Jul 13 05:56:29 2009
New Revision: 75460
URL: http://llvm.org/viewvc/llvm-project?rev=75460&view=rev
Log:
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.
Modified:
llvm/trunk/tools/llvmc/example/mcc16/driver/Main.cpp
llvm/trunk/tools/llvmc/example/mcc16/plugins/PIC16Base/PIC16Base.td
Modified: llvm/trunk/tools/llvmc/example/mcc16/driver/Main.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvmc/example/mcc16/driver/Main.cpp?rev=75460&r1=75459&r2=75460&view=diff
==============================================================================
--- llvm/trunk/tools/llvmc/example/mcc16/driver/Main.cpp (original)
+++ llvm/trunk/tools/llvmc/example/mcc16/driver/Main.cpp Mon Jul 13 05:56:29 2009
@@ -25,7 +25,6 @@
// HACK
SaveTemps.setHiddenFlag(llvm::cl::Hidden);
- SaveTemps = SaveTempsEnum::Unset;
TempDirname = "tmp-objs";
// Remove the temp dir if already exists.
Modified: llvm/trunk/tools/llvmc/example/mcc16/plugins/PIC16Base/PIC16Base.td
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvmc/example/mcc16/plugins/PIC16Base/PIC16Base.td?rev=75460&r1=75459&r2=75460&view=diff
==============================================================================
--- llvm/trunk/tools/llvmc/example/mcc16/plugins/PIC16Base/PIC16Base.td (original)
+++ llvm/trunk/tools/llvmc/example/mcc16/plugins/PIC16Base/PIC16Base.td Mon Jul 13 05:56:29 2009
@@ -55,7 +55,7 @@
(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,"))),
More information about the llvm-commits
mailing list