From d92a2562fff98de70f20b7c051785e96865ab018 Mon Sep 17 00:00:00 2001 From: cancel Date: Thu, 9 Jan 2020 02:17:11 +0900 Subject: [PATCH] Add detection of tcc compiler to tool script --- tool | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tool b/tool index 6d71db7..a520919 100755 --- a/tool +++ b/tool @@ -163,6 +163,8 @@ if cc_vers=$(echo -e '#ifndef __clang__\n#error Not found\n#endif\n__clang_major fi elif cc_vers=$(echo -e '#ifndef __GNUC__\n#error Not found\n#endif\n__GNUC__.__GNUC_MINOR__.__GNUC_PATCHLEVEL__' | "$cc_exe" -E -xc - 2>/dev/null | tail -n 1 | tr -d '\040'); then cc_id=gcc +elif cc_vers=$(echo -e '#ifndef __TINYC__\n#error Not found\n#endif\n__TINYC__' | "$cc_exe" -E -xc - 2>/dev/null | tail -n 1 | tr -d '\040'); then + cc_id=tcc fi if [[ -z $cc_id ]]; then