================ @@ -429,7 +411,9 @@ foreach( t ${LIBCLC_TARGETS_TO_BUILD} ) set( LIBCLC_ARCH_OBJFILE_DIR "${LIBCLC_OBJFILE_DIR}/${arch_suffix}" ) file( MAKE_DIRECTORY ${LIBCLC_ARCH_OBJFILE_DIR} ) - list( APPEND build_flags -cl-std=${opencl_lang_std} ) + # Build for OpenCL 3.0 and enable all extensions and features independently + # of the target or device. + list( APPEND build_flags -cl-std=CL3.0 -Xclang -cl-ext=+all ) ---------------- frasercrmck wrote:
That makes sense. Then targets could choose not to build builtins for which they don't support the appropriate extension. 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