allow mcc16 users to specify --save-temps even though it is hidden by mcc16.
authorSanjiv Gupta <sanjiv.gupta@microchip.com>
Mon, 13 Jul 2009 10:56:29 +0000 (10:56 +0000)
committerSanjiv Gupta <sanjiv.gupta@microchip.com>
Mon, 13 Jul 2009 10:56:29 +0000 (10:56 +0000)
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

tools/llvmc/example/mcc16/driver/Main.cpp
tools/llvmc/example/mcc16/plugins/PIC16Base/PIC16Base.td

index 55e948a4bceaae2f5f1e4a4322fb2b5b55d6206a..f42e17f641157a75c2a76e2352bc5387b29155c6 100644 (file)
@@ -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.
index 4e88a91f1c9624284a58b0aacfd5c1d899e4f663..508652425b1daf52922d4c536ea68a7ca9001422 100644 (file)
@@ -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,"))),