Browse Source

gcc: Enable the `opencl-types.c' test when OpenCL is not used.

* gcc-plugin/tests/Makefile.am (gcc_tests): Include `opencl-types.c'
  when !STARPU_USE_OPENCL.
Ludovic Courtès 13 years ago
parent
commit
e583c3f891
1 changed files with 8 additions and 1 deletions
  1. 8 1
      gcc-plugin/tests/Makefile.am

+ 8 - 1
gcc-plugin/tests/Makefile.am

@@ -40,7 +40,14 @@ gcc_tests =					\
   debug-tree.c					\
   shutdown-errors.c
 
-#  opencl-types.c				
+if !STARPU_USE_OPENCL
+
+# XXX: This test simulates a buggy OpenCL implementation, and thus
+# cannot be run then a real <cl_platform.h> is included.
+gcc_tests += opencl-types.c
+
+endif !STARPU_USE_OPENCL
+
 
 dist_noinst_HEADERS = mocks.h