[PATCH] XCore target: add support to build MultiSource/Benchmarks/Prolangs-C++/city

robert lytton robert at xmos.com
Thu Feb 13 11:28:35 PST 2014


random() is not part of the xcore distribution.
Added via the xcoretestsuite.h and testsuitelib.a

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

Files:
  MultiSource/Benchmarks/Prolangs-C++/city/broken_light.h
  MultiSource/Benchmarks/Prolangs-C++/city/main.cpp

Index: MultiSource/Benchmarks/Prolangs-C++/city/broken_light.h
===================================================================
--- MultiSource/Benchmarks/Prolangs-C++/city/broken_light.h
+++ MultiSource/Benchmarks/Prolangs-C++/city/broken_light.h
@@ -7,6 +7,10 @@
 #include "stream.h"
 #include <cstdlib>
 
+#if defined(__XS1B__)
+#include "xcoretestsuite.h"
+#endif
+
 #define BROKEN_LIGHT_ID 1
 
 class broken_light : public light
Index: MultiSource/Benchmarks/Prolangs-C++/city/main.cpp
===================================================================
--- MultiSource/Benchmarks/Prolangs-C++/city/main.cpp
+++ MultiSource/Benchmarks/Prolangs-C++/city/main.cpp
@@ -9,6 +9,9 @@
 #include "intersection.h"
 #include <cstdlib>
 
+#if defined(__XS1B__)
+#include "xcoretestsuite.h"
+#endif
 
 // connect r1->d1 to r2->d2
 void connect(roadlet *r1, direction d1,
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D2776.1.patch
Type: text/x-patch
Size: 868 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140213/3f9b87c3/attachment.bin>


More information about the llvm-commits mailing list