[all-commits] [llvm/llvm-project] 71ae2e: [libomptarget][amdgpu] don't declare Elf_Note on F...

Dimitry Andric via All-commits all-commits at lists.llvm.org
Fri Aug 6 12:46:02 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 71ae2e0221a99958ed82175781d92a73ea05597c
      https://github.com/llvm/llvm-project/commit/71ae2e0221a99958ed82175781d92a73ea05597c
  Author: Dimitry Andric <dimitry at andric.com>
  Date:   2021-08-06 (Fri, 06 Aug 2021)

  Changed paths:
    M openmp/libomptarget/plugins/amdgpu/impl/system.cpp

  Log Message:
  -----------
  [libomptarget][amdgpu] don't declare Elf_Note on FreeBSD

On FreeBSD, the system `<libelf.h>` already declares `struct Elf_Note`
indirectly (via `<sys/elf_common.h>`). This results in compile errors
when building the libomptarget amdgpu plugin. Avoid redeclaring `struct
Elf_Note` on FreeBSD to fix the errors.

Reviewed By: JonChesterfield

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




More information about the All-commits mailing list