AMDGPU/OpenCL: Accept -nostdlib in place of -nogpulib
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Wed, 6 May 2020 16:05:16 +0000 (12:05 -0400)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Thu, 14 May 2020 16:33:31 +0000 (12:33 -0400)
commit235fb7dc24b1cf7034dfc76bb853ffb4ac5dec5d
tree61a140dd29871f5ff382ecd2c76c04e93ea68956
parentbc2e572f51dac4aed8ef86b2f09427109f0cabb8
AMDGPU/OpenCL: Accept -nostdlib in place of -nogpulib

-nogpulib makes sense when there is a host (where -nostdlib would
 apply) and offload target. Accept nostdlib when there is no offload
 target as an alias.
clang/lib/Driver/ToolChains/AMDGPU.cpp
clang/test/Driver/rocm-detect.hip [new file with mode: 0644]
clang/test/Driver/rocm-not-found.cl