This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
parse target triplet into arch-vendor-abi?
- From: "Warlich, Christof" <christof dot warlich at siemens dot com>
- To: "gcc-help (gcc-help at gcc dot gnu dot org)" <gcc-help at gcc dot gnu dot org>
- Date: Wed, 25 Apr 2018 07:56:24 +0000
- Subject: parse target triplet into arch-vendor-abi?
Hi all,
is it possible in a generic way to split the target triplet into arch, vendor and abi?
I'm asking because abi may e.g. be something like 'linux-gnu',
i.e. the abi may contain a '-' itself, making it difficult to tell abi and vendor apart.
Thanks,
Chris