Harald van Dijk via llvm-dev
2021-Apr-03 15:58 UTC
[llvm-dev] Updating config.guess, license change
On 02/04/2021 22:52, Michael Kruse wrote:> Is there a possibility to ask CMake for the host's triple?There isn't, unfortunately: CMake does not use triples and does not provide it in a variable. It does provide us with predefined variables that provide information similar to what uname gives, which could be used to build the triple ourselves, but that would amount to rewriting config.guess in CMake.
Petr Hosek via llvm-dev
2021-Apr-04 23:24 UTC
[llvm-dev] Updating config.guess, license change
You can construct the triple from the variables CMake provides, we already do this for some of the targets: https://github.com/llvm/llvm-project/blob/00d5f1ecccc6d8ece9ac6dd19e9ad807c8a60097/llvm/cmake/modules/GetHostTriple.cmake I'd prefer expanding GetHostTriple.cmake until it covers all the targets we support. I don't think it'd necessarily require reimplementing all of config.guess, since config.guess covers a lot of targets most of which aren't supported by LLVM. On Sat, Apr 3, 2021 at 8:59 AM Harald van Dijk via llvm-dev < llvm-dev at lists.llvm.org> wrote:> On 02/04/2021 22:52, Michael Kruse wrote: > > Is there a possibility to ask CMake for the host's triple? > > There isn't, unfortunately: CMake does not use triples and does not > provide it in a variable. It does provide us with predefined variables > that provide information similar to what uname gives, which could be > used to build the triple ourselves, but that would amount to rewriting > config.guess in CMake. > _______________________________________________ > LLVM Developers mailing list > llvm-dev at lists.llvm.org > https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20210404/58d131d8/attachment.html> -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 3996 bytes Desc: S/MIME Cryptographic Signature URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20210404/58d131d8/attachment.bin>