[Openmp-commits] [PATCH] D101509: An attempt to abandon omptarget out-of-tree builds.

Jon Chesterfield via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Tue May 11 02:32:21 PDT 2021


JonChesterfield added a comment.

In D101509#2750027 <https://reviews.llvm.org/D101509#2750027>, @protze.joachim wrote:

> @JonChesterfield do you mean, that amdgcn is only compatible with LLVM's libc++ and cannot be built against libstdc++? As I understand, clang will use GNU's headers, if libstdc++ is used?

Nope. Neither libc++ nor libstdc++ work with amdgpu as far as I know, and ffreestanding stops clang trying to use either.

It uses stdint.h, stddef.h, maybe a couple of others for convenience. Limited to the header only libc headers that clang provides.

We can drop those by providing typedefs for uint64_t etc, but my preference is to continue using the C headers that ship with clang. I'm not sure if -nostdinc plus explicitly including from the clang install tree would work with that environment variable set.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D101509/new/

https://reviews.llvm.org/D101509



More information about the Openmp-commits mailing list