Skip to content

Commit

Permalink
支持命令行参数生成vs版本
Browse files Browse the repository at this point in the history
  • Loading branch information
hero1s committed Jun 19, 2024
1 parent bfb7bfc commit 2da8d91
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion server/admin/admin_mgr.lua
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ local readfile = io_ext.readfile
local GMType = enum("GMType")
local KernCode = enum("KernCode")
local SUCCESS = KernCode.SUCCESS
local check_success = hive.success

local cmdline = hive.get("cmdline")
local event_mgr = hive.get("event_mgr")
local router_mgr = hive.get("router_mgr")
Expand Down
4 changes: 4 additions & 0 deletions tools/lmake/lmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,10 @@ local function load_env_file(file, env)
error(sformat("load lmake file failed :%s", res))
return false
end
local vsversion = os.getenv("HIVE_VSVERSION")
if vsversion then
env.VSVERSION = vsversion
end
return true
end

Expand Down

0 comments on commit 2da8d91

Please sign in to comment.