Skip to content

Commit 0b3b20f

Browse files
remove premake options default (#844)
1 parent a82cf03 commit 0b3b20f

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

premake/dll.lua

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
1-
newoption { trigger = "lua-dir", description = "", value = "PATH", default = "./lua" }
1+
LUA_DIR = "./lua"
2+
3+
newoption { trigger = "lua-dir", description = "", value = "PATH" }
24

35
function GetParam(param)
46
return _OPTIONS[param] or os.getenv(string.upper(string.gsub(param,"-","_")))
57
end
68

7-
LUA_DIR=GetParam("lua-dir")
9+
LUA_DIR = GetParam("lua-dir") or LUA_DIR
810
if not os.isdir(LUA_DIR) then
9-
LUA_DIR="../lua"
11+
LUA_DIR = "../lua"
1012
end
1113

1214
workspace "ocgcoredll"

0 commit comments

Comments
 (0)