================ @@ -387,21 +387,39 @@ foreach( t ${LIBCLC_TARGETS_TO_BUILD} ) message( STATUS " device: ${d} ( ${${d}_aliases} )" ) - if ( ARCH STREQUAL spirv OR ARCH STREQUAL spirv64 ) + # 1.2 is Clang's default OpenCL C language standard to compile for. + set( opencl_lang_std "CL1.2" ) + + if ( ${DARCH} STREQUAL spirv ) + set( opencl_lang_std "CL3.0" ) ---------------- frasercrmck wrote:
Does this look okay to you, @airlied? https://github.com/llvm/llvm-project/pull/135733 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits