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.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Thank you for the patch! I haven't been compiling this on a bsd.
Adding it to the list of reasons to replace libelf with the llvm elf headers within this plugin