[Lldb-commits] [lldb] r110893 - in /lldb/trunk/test/macosx: ./ universal/ universal/Makefile universal/main.c

Jim Ingham jingham at apple.com
Wed Aug 11 18:21:40 PDT 2010


Author: jingham
Date: Wed Aug 11 20:21:40 2010
New Revision: 110893

URL: http://llvm.org/viewvc/llvm-project?rev=110893&view=rev
Log:
Test files (but no test cases yet) for handling Universal files.

Added:
    lldb/trunk/test/macosx/
    lldb/trunk/test/macosx/universal/
    lldb/trunk/test/macosx/universal/Makefile
    lldb/trunk/test/macosx/universal/main.c

Added: lldb/trunk/test/macosx/universal/Makefile
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/macosx/universal/Makefile?rev=110893&view=auto
==============================================================================
--- lldb/trunk/test/macosx/universal/Makefile (added)
+++ lldb/trunk/test/macosx/universal/Makefile Wed Aug 11 20:21:40 2010
@@ -0,0 +1,17 @@
+testit: testit.i386 testit.x86_64
+	lipo -create -o testit testit.i386 testit.x86_64
+
+testit.i386: testit.i386.o
+	gcc -arch i386 -o testit.i386 testit.i386.o
+
+testit.x86_64: testit.x86_64.o
+	gcc -arch x86_64 -o testit.x86_64 testit.x86_64.o
+
+testit.i386.o: main.c
+	gcc -g -O0 -arch i386 -c -o testit.i386.o main.c
+
+testit.x86_64.o: main.c
+	gcc -g -O0 -arch x86_64 -c -o testit.x86_64.o main.c
+
+clean:
+	rm -rf testit* *~

Added: lldb/trunk/test/macosx/universal/main.c
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/macosx/universal/main.c?rev=110893&view=auto
==============================================================================
--- lldb/trunk/test/macosx/universal/main.c (added)
+++ lldb/trunk/test/macosx/universal/main.c Wed Aug 11 20:21:40 2010
@@ -0,0 +1,7 @@
+#include <stdio.h>
+int
+main (int argc, char **argv)
+{
+  printf ("Hello there!\n");
+  return 0;
+}





More information about the lldb-commits mailing list