[PATCH] D56696: gn build: Rename llvm_host_triple to llvm_current_triple and have it use current_{cpu, os}.
Peter Collingbourne via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jan 14 19:42:55 PST 2019
pcc created this revision.
pcc added reviewers: thakis, phosek.
Herald added a subscriber: srhines.
This makes e.g. ToolChain::isCrossCompiling() in
clang/lib/Driver/ToolChain.cpp return the correct result
if the compiler was cross-compiled. This change also affects
llvm_default_target_triple, so cross-compiled compilers default to
targeting the cross-compilation target, which makes more sense than
the host that the compiler was compiled on.
This change will also be necessary in order for the correct triples
to appear in generated lit files for non-native targets.
Repository:
rL LLVM
https://reviews.llvm.org/D56696
Files:
llvm/utils/gn/build/BUILDCONFIG.gn
llvm/utils/gn/build/toolchain/BUILD.gn
llvm/utils/gn/secondary/clang/test/BUILD.gn
llvm/utils/gn/secondary/llvm/include/llvm/Config/BUILD.gn
llvm/utils/gn/secondary/llvm/test/BUILD.gn
llvm/utils/gn/secondary/llvm/triples.gni
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D56696.181704.patch
Type: text/x-patch
Size: 3982 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190115/2623ea3b/attachment.bin>
More information about the llvm-commits
mailing list