[PATCH] XCore target: add support to build MultiSource/Benchmarks/sim/sim.c

robert lytton robert at xmos.com
Thu Feb 13 11:39:48 PST 2014


http://llvm-reviews.chandlerc.com/D2781

Files:
  MultiSource/Benchmarks/sim/sim.c

Index: MultiSource/Benchmarks/sim/sim.c
===================================================================
--- MultiSource/Benchmarks/sim/sim.c
+++ MultiSource/Benchmarks/sim/sim.c
@@ -92,6 +92,12 @@
 #undef UNIX
 #endif
 
+#ifdef __XS1B__
+#include <unistd.h>
+#define CTimer
+#undef UNIX
+#endif
+
 static const char *mybasename(const char *str) {
   const char *base = strrchr(str, '/');
   return base ? base+1 : str;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D2781.1.patch
Type: text/x-patch
Size: 423 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140213/bfa97791/attachment.bin>


More information about the llvm-commits mailing list