shithub: orca

Download patch

ref: d92a2562fff98de70f20b7c051785e96865ab018
parent: f20babb05c1ea6d27fc9994484b7097ba7ba98d7
author: cancel <cancel@cancel.fm>
date: Wed Jan 8 21:17:11 EST 2020

Add detection of tcc compiler to tool script

--- a/tool
+++ b/tool
@@ -163,6 +163,8 @@
   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