瀏覽代碼

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 年之前
父節點
當前提交
e583c3f891
共有 1 個文件被更改,包括 8 次插入1 次删除
  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