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
This commit is contained in:
Sanjiv Gupta 2009-07-13 10:56:29 +00:00
parent 7a80f5f825
commit f935dcc26a
2 changed files with 1 additions and 2 deletions

View 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.

View 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,"))),