Modified examples Makefile to only build the ExceptionDemo example for
authorGarrison Venn <gvenn.cfe.dev@gmail.com>
Tue, 23 Feb 2010 16:27:59 +0000 (16:27 +0000)
committerGarrison Venn <gvenn.cfe.dev@gmail.com>
Tue, 23 Feb 2010 16:27:59 +0000 (16:27 +0000)
x86 and x86_64 on UNIX systems. Only OS X 10.6.2 (x86_64) and 32bit CentOS 5.2
with gcc 4.1.2 were tested. ARM UNIX build triggered failure motivating this
modification, as it seems that the ARM ABI does not support _Unwind_GetIP(...),
_Unwind_SetGR(...), and _Unwind_SetIP(...). From doing a quick browse of:
http://infocenter.arm.com/help/topic/com.arm.doc.ihi0038a/IHI0038A_ehabi.pdf,
it seems as if all other exception related apis are supported. Looks like
the port can be done to ARM. Thanks to Xerxes RĂ„nby <xerxes@zafena.se> for
pointing out this error.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@96949 91177308-0d34-0410-b5e6-96231b3b80d8

examples/Makefile

index fc3a7d4ea3fffd01828df5db22a67db2e2de4a27..0737eaf57902c6c9ea13a73d20b64dbf16ea87a6 100644 (file)
@@ -17,7 +17,12 @@ PARALLEL_DIRS += ParallelJIT
 endif
 
 ifeq ($(LLVM_ON_UNIX),1)
-PARALLEL_DIRS += ExceptionDemo
+    ifeq ($(ARCH),x86)
+       PARALLEL_DIRS += ExceptionDemo
+    endif
+    ifeq ($(ARCH),x86_64)
+       PARALLEL_DIRS += ExceptionDemo
+    endif
 endif
 
 include $(LEVEL)/Makefile.common