[llvm-commits] CVS: llvm-gcc/gcc/llvm-out.c

Chris Lattner lattner at cs.uiuc.edu
Mon Sep 13 21:51:09 PDT 2004



Changes in directory llvm-gcc/gcc:

llvm-out.c updated: 1.2 -> 1.3
---
Log message:

Make the C/C++ FE emit deplibs that includes the runtime libs for the current
language.


---
Diffs of the changes:  (+12 -0)

Index: llvm-gcc/gcc/llvm-out.c
diff -u llvm-gcc/gcc/llvm-out.c:1.2 llvm-gcc/gcc/llvm-out.c:1.3
--- llvm-gcc/gcc/llvm-out.c:1.2	Thu Feb  5 10:05:45 2004
+++ llvm-gcc/gcc/llvm-out.c	Mon Sep 13 23:50:56 2004
@@ -107,6 +107,18 @@
       fprintf(llvm_out_file, "target pointersize = %d\n", POINTER_SIZE);
       fprintf(llvm_out_file, "target endian = %s\n",
               (BYTES_BIG_ENDIAN) ? "big" : "little");
+
+      /* Emit the runtime library requirements for this file depending on what
+       * language is being compiled.
+       */
+      fprintf(llvm_out_file, "deplibs = [");
+      if (c_dialect_cxx())
+        fprintf(llvm_out_file, "\"stdc++\", ");
+      if (c_dialect_objc())
+        fprintf(llvm_out_file, "\"objc\", ");
+      fprintf(llvm_out_file, "\"c\"]\n");
+
+      fprintf(llvm_out_file, "\n");
     }
 }
 






More information about the llvm-commits mailing list