[libc] Ignore unknown CUDA versions for `libc` targeting NVPTX
authorJoseph Huber <jhuber6@vols.utk.edu>
Fri, 21 Apr 2023 18:26:13 +0000 (13:26 -0500)
committerJoseph Huber <jhuber6@vols.utk.edu>
Fri, 21 Apr 2023 18:27:45 +0000 (13:27 -0500)
commit1c968f7a1f9320416d6ec678a50bd570dce89f0f
treeced05160e798fc82d0b4baf1105a5399129fca7b
parenta73cd00d87321a6fb9dc91f952d3ec53b6e4019d
[libc] Ignore unknown CUDA versions for `libc` targeting NVPTX

Summary:
We generally need a CUDA toolchain to build the tests for the GPU `libc`
targeting NVPTX. However, clang will commonly emit warnings on versions
that are too new. We can ignore these in `libc` since we are manually
specifying the `+ptx` version to use whenever we compile. So we do not
need to worry about unexpected changes and we do not depend on any newer
features. So this should not be problematic.
libc/cmake/modules/LLVMLibCObjectRules.cmake