[all-commits] [llvm/llvm-project] 6abaa8: [CUDA][HIP][NFC] Do not add `-fgpu-rdc` flag twice

Joseph Huber via All-commits all-commits at lists.llvm.org
Wed Jul 13 12:58:14 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 6abaa8e2103760025cee76528f555de7cf6698e6
      https://github.com/llvm/llvm-project/commit/6abaa8e2103760025cee76528f555de7cf6698e6
  Author: Joseph Huber <jhuber6 at vols.utk.edu>
  Date:   2022-07-13 (Wed, 13 Jul 2022)

  Changed paths:
    M clang/lib/Driver/ToolChains/Clang.cpp
    M clang/test/Driver/cuda-external-tools.cu

  Log Message:
  -----------
  [CUDA][HIP][NFC] Do not add `-fgpu-rdc` flag twice

Summary:
We currently add the `-fgpu-rdc` flag twice. Once unconditionally for
both the host and device phases of compilation, and a second time only
for the host. When we moved to an unconditional addition of this flag it
the old one was most likely not removed. This patch simply removes the
redundant flag and changes no functionality.




More information about the All-commits mailing list