glaubitz added a comment. In D52050#2468424 <https://reviews.llvm.org/D52050#2468424>, @jrtc27 wrote:
>> However, that's not the same as whether we're on an x86_64 system or on an >> x32 system determines which GNU triplet to use and which include and library >> search paths are our primary ones. > > But `Triple.getEnvironment()` will give you `llvm::Triple::GNUX32` that you > can check? Yes, but we have to differentiate four scenarios: - On x86_64, targeting x86_64 - On x86_64, targeting x32 - On x32, targeting x32 - On x32, targeting x86_64 On x86 it's clear because "x86" is an architecture on its own from clang's point of view. But that doesn't apply for x32 (at least for clang) and hence I don't know how to differentiate these four scenarios. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D52050/new/ https://reviews.llvm.org/D52050 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits