================ @@ -175,7 +175,8 @@ void NVPTXTargetInfo::getTargetDefines(const LangOptions &Opts, // Skip setting architecture dependent macros if undefined. if (!IsNVIDIAOffloadArch(GPU)) - return; + if (GPU == OffloadArch::Unused && !HostTarget) ---------------- shiltian wrote:
I'd make it in a separate PR and keep this one as a completely NFC. https://github.com/llvm/llvm-project/pull/174528 _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
