aboutsummaryrefslogtreecommitdiffstats
path: root/utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'utils.py')
-rw-r--r--utils.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/utils.py b/utils.py
index 088d66667..cbd19c207 100644
--- a/utils.py
+++ b/utils.py
@@ -676,4 +676,7 @@ def detectClang():
clangDir = output[0]
except OSError:
pass
+ if clangDir:
+ arch = '64' if sys.maxsize > 2**31-1 else '32'
+ clangDir = clangDir.replace('_ARCH_', arch)
return (clangDir, source)