From f0bc116842f6a3618333ec2eb59a69847cfda727 Mon Sep 17 00:00:00 2001 From: ruki Date: Sat, 8 Dec 2018 00:38:37 +0800 Subject: solve issues #232 --- xmake/core/project/project.lua | 7 +++++++ 1 file changed, 7 insertions(+) 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? -- cgit v1.3.1