I have a patch which may workaround this issue, however I could not test it in Cygwin since I got issues build latest cmake in Cygwin and the downloaded cmake does not work.
Could you please try it? Thanks. Sam -----Original Message----- From: Ismail Donmez [mailto:ism...@i10z.com] Sent: Wednesday, June 22, 2016 1:52 PM To: Liu, Yaxun (Sam) <yaxun....@amd.com> Cc: cfe-commits <cfe-commits@lists.llvm.org> Subject: Re: r273191 - [OpenCL] Include opencl-c.h by default as a clang module Hi, On Wed, Jun 22, 2016 at 7:55 PM, Liu, Yaxun (Sam) <yaxun....@amd.com> wrote: > The cmake of Cygwin itself does not support llvm. Which cmake did you use on > Cygwin? Thanks. I use native windows cmake and this is the only test that ever failed with this setup. chmod is from native cygwin which seems to be the problem. ismail
diff --git a/test/Headers/opencl-c-header.cl b/test/Headers/opencl-c-header.cl index 4ba3b27..3723935 100644 --- a/test/Headers/opencl-c-header.cl +++ b/test/Headers/opencl-c-header.cl @@ -71,11 +71,11 @@ // RUN: %clang_cc1 -triple spir-unknown-unknown -emit-llvm -o - -finclude-default-header -fmodules -fimplicit-module-maps -fmodules-cache-path=%t -ftime-report %s 2>&1 | FileCheck --check-prefix=CHECK --check-prefix=CHECK-MOD %s // RUN: %clang_cc1 -triple spir-unknown-unknown -emit-llvm -o - -cl-std=CL2.0 -finclude-default-header -fmodules -fimplicit-module-maps -fmodules-cache-path=%t -ftime-report %s 2>&1 | FileCheck --check-prefix=CHECK20 --check-prefix=CHECK-MOD %s // RUN: %clang_cc1 -triple amdgcn--amdhsa -emit-llvm -o - -cl-std=CL2.0 -finclude-default-header -fmodules -fimplicit-module-maps -fmodules-cache-path=%t -ftime-report %s 2>&1 | FileCheck --check-prefix=CHECK20 --check-prefix=CHECK-MOD %s -// RUN: chmod u-w %t/* +// RUN: chmod u-w %t // RUN: %clang_cc1 -triple spir-unknown-unknown -emit-llvm -o - -finclude-default-header -fmodules -fimplicit-module-maps -fmodules-cache-path=%t -ftime-report %s 2>&1 | FileCheck --check-prefix=CHECK --check-prefix=CHECK-MOD %s // RUN: %clang_cc1 -triple spir-unknown-unknown -emit-llvm -o - -cl-std=CL2.0 -finclude-default-header -fmodules -fimplicit-module-maps -fmodules-cache-path=%t -ftime-report %s 2>&1 | FileCheck --check-prefix=CHECK20 --check-prefix=CHECK-MOD %s // RUN: %clang_cc1 -triple amdgcn--amdhsa -emit-llvm -o - -cl-std=CL2.0 -finclude-default-header -fmodules -fimplicit-module-maps -fmodules-cache-path=%t -ftime-report %s 2>&1 | FileCheck --check-prefix=CHECK20 --check-prefix=CHECK-MOD %s -// RUN: chmod u+w %t/* +// RUN: chmod u+w %t char f(char x) { #if __OPENCL_C_VERSION__ != CL_VERSION_2_0
_______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits