From 14a47ea15ebb341a21348e29ffa2d99386cbcd2d Mon Sep 17 00:00:00 2001 From: Jonas 'Sortie' Termansen Date: Sat, 25 Jul 2015 22:53:05 +0200 Subject: [PATCH] Decide tix build triplets on Sortix without running cc. --- tix/util.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tix/util.h b/tix/util.h index cf1dd29a..6b4ea553 100644 --- a/tix/util.h +++ b/tix/util.h @@ -459,6 +459,13 @@ char* GetBuildTriplet() const char* env_host = getenv("BUILD"); if ( env_host ) return strdup(env_host); +#if defined(__sortix__) && defined(__i386__) + return strdup("i486-sortix"); +#elif defined(__sortix__) && defined(__x86_64__) + return strdup("x86_64-sortix"); +#elif defined(__sortix__) + #warning "Add your build triplet here" +#endif FILE* fp = popen("cc -dumpmachine", "r"); if ( !fp ) return NULL;