diff --git a/libc/cmake/modules/LLVMLibCObjectRules.cmake b/libc/cmake/modules/LLVMLibCObjectRules.cmake index c3fe7982011c5..3a1475d3807ca 100644 --- a/libc/cmake/modules/LLVMLibCObjectRules.cmake +++ b/libc/cmake/modules/LLVMLibCObjectRules.cmake @@ -74,6 +74,7 @@ endfunction() function(get_nvptx_compile_options output_var gpu_arch) set(nvptx_options "") list(APPEND nvptx_options "-march=${gpu_arch}") + list(APPEND nvptx_options "-Wno-unknown-cuda-version") if(${gpu_arch} STREQUAL "sm_35") list(APPEND nvptx_options "--cuda-feature=+ptx60") elseif(${gpu_arch} STREQUAL "sm_37")