================
@@ -585,9 +585,9 @@ static void InitializeStandardPredefinedMacros(const
TargetInfo &TI,
// Not "standard" per se, but available even with the -undef flag.
if (LangOpts.AsmPreprocessor)
Builder.defineMacro("__ASSEMBLER__");
+ if ((LangOpts.CUDA || LangOpts.isSYCL()) &&
LangOpts.GPURelocatableDeviceCode)
+ Builder.defineMacro("__CLANG_RDC__");
----------------
YuriPlyakhin wrote:
I checked that it works for HIP as well. Sorry, Tom, I should have told you. :)
https://github.com/llvm/llvm-project/pull/215437
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits