]> granicus.if.org Git - clang/commit
[CUDA] Require libdevice only if needed
authorJonas Hahnfeld <hahnjo@hahnjo.de>
Mon, 16 Oct 2017 13:31:30 +0000 (13:31 +0000)
committerJonas Hahnfeld <hahnjo@hahnjo.de>
Mon, 16 Oct 2017 13:31:30 +0000 (13:31 +0000)
commit30b847df63031714b459d3c5278f9fd915dfa738
tree8b124877215d67528416b28a06774f949be8f8b2
parentc49d6ee8203dd3376433a2c928dea15000073a8b
[CUDA] Require libdevice only if needed

If the user passes -nocudalib, we can live without it being present.
Simplify the code by just checking whether LibDeviceMap is empty.

Differential Revision: https://reviews.llvm.org/D38901

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@315902 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Driver/ToolChains/Cuda.cpp
test/Driver/Inputs/CUDA-nolibdevice/usr/local/cuda/bin/.keep [new file with mode: 0644]
test/Driver/Inputs/CUDA-nolibdevice/usr/local/cuda/include/.keep [new file with mode: 0644]
test/Driver/Inputs/CUDA-nolibdevice/usr/local/cuda/lib/.keep [new file with mode: 0644]
test/Driver/Inputs/CUDA-nolibdevice/usr/local/cuda/lib64/.keep [new file with mode: 0644]
test/Driver/cuda-detect.cu