================
@@ -391,6 +391,12 @@ class LLVM_LIBRARY_VISIBILITY Darwin : public AppleMachO {
void VerifyTripleForSDK(const llvm::opt::ArgList &Args,
const llvm::Triple Triple) const;
+protected:
+ /// Lazily initialize the target platform from the triple when
+ /// AddDeploymentTarget has not run yet (e.g. when Darwin is used as
+ /// a host toolchain for device offloading).
+ void ensureTargetInitialized() const;
----------------
jhuber6 wrote:
Could you elaborate more on what the problem is here? Generally the flow is
that we pass almost everything to both phases. There are plenty of user flags
that don't work, but I believe we've been moving towards requiring things like
`-Xarch_host -fsanitize=address` for example rather than just having the device
side ignore it.
https://github.com/llvm/llvm-project/pull/183991
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits