summaryrefslogtreecommitdiff
path: root/xmake/core/platform/compiler.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2016-03-04 10:31:12 +0800
committerruki <[email protected]>2016-03-04 10:31:12 +0800
commitae466964bd7404958782890a267e98bd104a43bd (patch)
treee9d779b1c8847072674552a90ffb3bf44fdcae7b /xmake/core/platform/compiler.lua
parentf4b82ec9289932937c21e00b0ff35bb4f3544e3b (diff)
restore platform and project menu
Diffstat (limited to 'xmake/core/platform/compiler.lua')
-rw-r--r--xmake/core/platform/compiler.lua10
1 files changed, 5 insertions, 5 deletions
diff --git a/xmake/core/platform/compiler.lua b/xmake/core/platform/compiler.lua
index 7196abd6a..04932dda2 100644
--- a/xmake/core/platform/compiler.lua
+++ b/xmake/core/platform/compiler.lua
@@ -26,14 +26,14 @@ local compiler = compiler or {}
-- load modules
local io = require("base/io")
local path = require("base/path")
-local rule = require("base/rule")
local utils = require("base/utils")
local table = require("base/table")
local option = require("base/option")
local string = require("base/string")
-local config = require("base/config")
-local tools = require("platform/tool")
-local platform = require("base/platform")
+local rule = require("project/rule")
+local config = require("project/config")
+local tool = require("platform/tool")
+local platform = require("platform/platform")
-- map gcc flag to the given compiler flag
function compiler._mapflag(module, flag)
@@ -408,7 +408,7 @@ function compiler.get(srcfile)
end
-- get compiler from the source file type
- local module = tools.get(kind)
+ local module = tool.get(kind)
if module then
-- invalid compiler