diff options
| author | ruki <[email protected]> | 2018-11-14 22:47:31 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2018-11-14 10:45:07 +0800 |
| commit | 5b853be10785785af89a382f666415e739445e0a (patch) | |
| tree | 70596d9288e3fb2323ff20f42af91bb74040456a /xmake/core/platform/platform.lua | |
| parent | 2f4297339f80b749512f1cb9335abc236dd4c5d4 (diff) | |
improve to detect clang as gcc
Diffstat (limited to 'xmake/core/platform/platform.lua')
| -rw-r--r-- | xmake/core/platform/platform.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/xmake/core/platform/platform.lua b/xmake/core/platform/platform.lua index b5886dd42..88770c1ce 100644 --- a/xmake/core/platform/platform.lua +++ b/xmake/core/platform/platform.lua @@ -257,6 +257,7 @@ function platform.tool(toolkind) -- attempt to get program from config first local program = config.get(toolkind) + local toolname = config.get("__toolname_" .. toolkind) if program == nil then -- check it first @@ -267,10 +268,10 @@ function platform.tool(toolkind) -- get it again program = config.get(toolkind) + toolname = config.get("__toolname_" .. toolkind) end -- contain toolname? parse it, .e.g '[email protected]' - local toolname = nil if program then local pos = program:find('@', 1, true) if pos then |
