summaryrefslogtreecommitdiff
path: root/xmake/modules/detect
diff options
context:
space:
mode:
authorruki <[email protected]>2017-07-06 05:33:03 +0800
committerruki <[email protected]>2017-07-06 05:33:03 +0800
commita1bdaeab96b1c3a877b17a6511d4adfaab8327f1 (patch)
treeb86d01607beee4075a71cf24ebee962f33ca8433 /xmake/modules/detect
parent54dc847355f7cfec14d2f23db253271baf5bf301 (diff)
improve find_tool for gcc on macosx
Diffstat (limited to 'xmake/modules/detect')
-rw-r--r--xmake/modules/detect/tools/find_gcc.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/modules/detect/tools/find_gcc.lua b/xmake/modules/detect/tools/find_gcc.lua
index d7cbce7d2..dfb826b29 100644
--- a/xmake/modules/detect/tools/find_gcc.lua
+++ b/xmake/modules/detect/tools/find_gcc.lua
@@ -54,5 +54,5 @@ function main(opt)
end
-- ok?
- return program, version
+ return program, version, ifelse(os.host() == "macosx", "clang", "gcc")
end