[PATCH] D50845: [CUDA/OpenMP] Define only some host macros during device compilation
Gheorghe-Teodor Bercea via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Aug 30 11:49:24 PDT 2018
gtbercea added a comment.
In https://reviews.llvm.org/D50845#1219746, @tra wrote:
> Also, whatever macros we generate do not prevent headers from using x86 inline assembly. I see quite a few inline asm code in preprocessed output. The headers are from libc ~2.19.
Did you try adding
Builder.defineMacro("__NO_MATH_INLINES");
Repository:
rL LLVM
https://reviews.llvm.org/D50845
More information about the cfe-commits
mailing list