[llvm-commits] [compiler-rt] r144305 - in /compiler-rt/trunk/make/platform: clang_darwin.mk clang_darwin_test_input.c
Daniel Dunbar
daniel at zuster.org
Thu Nov 10 11:32:04 PST 2011
Author: ddunbar
Date: Thu Nov 10 13:32:03 2011
New Revision: 144305
URL: http://llvm.org/viewvc/llvm-project?rev=144305&view=rev
Log:
platform/clang_darwin: Improve the "can we build for this arch test" by checking
that the standard includes we use in compiler-rt also work.
Added:
compiler-rt/trunk/make/platform/clang_darwin_test_input.c
Modified:
compiler-rt/trunk/make/platform/clang_darwin.mk
Modified: compiler-rt/trunk/make/platform/clang_darwin.mk
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/make/platform/clang_darwin.mk?rev=144305&r1=144304&r2=144305&view=diff
==============================================================================
--- compiler-rt/trunk/make/platform/clang_darwin.mk (original)
+++ compiler-rt/trunk/make/platform/clang_darwin.mk Thu Nov 10 13:32:03 2011
@@ -12,7 +12,8 @@
$(shell \
result=""; \
for arch in $(1); do \
- if $(CC) -arch $$arch -c -x c /dev/null \
+ if $(CC) -arch $$arch -c \
+ $(ProjSrcRoot)/make/platform/clang_darwin_test_input.c \
-o /dev/null > /dev/null 2> /dev/null; then \
result="$$result$$arch "; \
fi; \
Added: compiler-rt/trunk/make/platform/clang_darwin_test_input.c
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/make/platform/clang_darwin_test_input.c?rev=144305&view=auto
==============================================================================
--- compiler-rt/trunk/make/platform/clang_darwin_test_input.c (added)
+++ compiler-rt/trunk/make/platform/clang_darwin_test_input.c Thu Nov 10 13:32:03 2011
@@ -0,0 +1,5 @@
+/* Include the headers we use in int_lib.h, to verify that they work. */
+
+#include <limits.h>
+#include <stdint.h>
+#include <math.h>
More information about the llvm-commits
mailing list