summaryrefslogtreecommitdiff
path: root/xmake/core/main.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2019-05-25 22:03:58 +0800
committerruki <[email protected]>2019-05-25 22:03:58 +0800
commit2cae1ff2dc7f1756a8a831cfde5c6610342f978f (patch)
tree397a3b92fd0405dff31e2cb0ea9cd1d02a5c32fe /xmake/core/main.lua
parente2b3965574e574fafbd76d89ee6f5d18ca1265cd (diff)
add confirm option
Diffstat (limited to 'xmake/core/main.lua')
-rw-r--r--xmake/core/main.lua15
1 files changed, 3 insertions, 12 deletions
diff --git a/xmake/core/main.lua b/xmake/core/main.lua
index 685030a10..5659929d4 100644
--- a/xmake/core/main.lua
+++ b/xmake/core/main.lua
@@ -28,7 +28,6 @@ local path = require("base/path")
local utils = require("base/utils")
local option = require("base/option")
local global = require("base/global")
-local profiler = require("base/profiler")
local deprecated = require("base/deprecated")
local privilege = require("base/privilege")
local task = require("base/task")
@@ -36,6 +35,7 @@ local colors = require("base/colors")
local theme = require("theme/theme")
local project = require("project/project")
local history = require("project/history")
+--local profiler = require("base/profiler")
-- init the option menu
local menu =
@@ -195,15 +195,8 @@ Or you can add `--root` option or XMAKE_ROOT=y to allow run as root temporarily.
end
end
- -- check deprecated options, TODO it will be removed after v2.3.0
- if option.get("backtrace") then
- deprecated.add("-D or --diagnosis", "--backtrace")
- end
-
-- start profiling
- if option.get("profile") then
- profiler:start()
- end
+ -- profiler:start()
-- load global configuration
ok, errors = global.load()
@@ -249,9 +242,7 @@ Or you can add `--root` option or XMAKE_ROOT=y to allow run as root temporarily.
deprecated.dump()
-- stop profiling
- if option.get("profile") then
- profiler:stop()
- end
+ -- profiler:stop()
-- close log
log:close()