summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xmake/core/project/project.lua7
1 files changed, 7 insertions, 0 deletions
diff --git a/xmake/core/project/project.lua b/xmake/core/project/project.lua
index c9eb33fd9..5c9eeb9dc 100644
--- a/xmake/core/project/project.lua
+++ b/xmake/core/project/project.lua
@@ -274,6 +274,13 @@ function project.interpreter()
if type(result) == "function" then
result = result()
end
+
+ -- attempt to get it from the platform tools, e.g. cc, cxx, ld ..
+ -- because these values may not exist in config cache when call `config.get()`, we need check and get it.
+ --
+ if not result then
+ result = platform.tool(variable)
+ end
end
-- ok?