diff options
| author | ruki <[email protected]> | 2018-12-08 00:38:37 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2018-12-07 21:51:44 +0800 |
| commit | f0bc116842f6a3618333ec2eb59a69847cfda727 (patch) | |
| tree | f82d8c0a8636aa7089b0bb0acbeb04ffee62b032 | |
| parent | b4f35402ca2a97708dc46f6e48d60a3f5bf02f5e (diff) | |
solve issues #232
| -rw-r--r-- | xmake/core/project/project.lua | 7 |
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? |
