[all-commits] [llvm/llvm-project] cbc4bb: [HIP] Ignore host linker flags for device-only

Siu Chi Chan via All-commits all-commits at lists.llvm.org
Mon Jul 17 13:29:39 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: cbc4bbb85c729f34bf0cba84ccd2e116af1454f5
      https://github.com/llvm/llvm-project/commit/cbc4bbb85c729f34bf0cba84ccd2e116af1454f5
  Author: Siu Chi Chan <siuchi.chan at amd.com>
  Date:   2023-07-17 (Mon, 17 Jul 2023)

  Changed paths:
    M clang/lib/Driver/Driver.cpp
    M clang/test/Driver/hip-phases.hip

  Log Message:
  -----------
  [HIP] Ignore host linker flags for device-only

When compiling in device only mode (e.g. --offload-device-only), the
host linker phase would not happen and therefore, the driver should
ignore all the host linker flags.

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

Change-Id: I8244acef5c33108cf15b1dbb188f974f30099718




More information about the All-commits mailing list