shithub: orca

Download patch

ref: 107dca71fa0c616ace1fd34ace27baba69841bb9
parent: 64839b916e4ba9556be88258ed360187263fe393
author: cancel <cancel@cancel.fm>
date: Wed Dec 19 18:45:46 EST 2018

Add special case for mac clang version number

--- a/tool
+++ b/tool
@@ -125,7 +125,10 @@
 lld_detected=0
 if cc_vers=$(echo -e '#ifndef __clang__\n#error Not found\n#endif\n__clang_major__.__clang_minor__.__clang_patchlevel__' | "$cc_exe" -E -xc - 2>/dev/null | tail -n 1 | tr -d '\040'); then
   cc_id=clang
-  if [[ $os != mac ]]; then
+  # Mac clang/llvm doesn't say the real version of clang. Just assume it's 3.9.0
+  if [[ $os == mac ]]; then
+    cc_vers=4.2.1
+  else
     if command -v "lld" >/dev/null 2>&1; then
       lld_detected=1
     fi