--- "binary/all_in_one" 2024-09-23 13:31:16.489277700 -0500 +++ "binary/all_in_one" 2024-09-23 13:31:14.032152500 -0500 @@ -406,27 +406,6 @@ fd:write(reindent_c(table.concat(out, "\n"))) fd:close() - assert(deps.check_lua_incdir(cfg.variables)) - assert(deps.check_lua_libdir(cfg.variables)) - - cmd = table.concat(filter_in(nonnull, { - CC, "-o", TARGET_DIR .. "/" .. program_name .. ".exe", - "-I", cfg.variables.LUA_INCDIR, - if_platform("unix", "-rdynamic"), - "-Os", - c_filename, - "-L", cfg.variables.LUA_LIBDIR, - table.concat(a_files, " "), - --if_platform("unix", cfg.variables.LUA_LIBDIR .. "/" .. cfg.variables.LUALIB:gsub("%.so.*$", ".a")), - --if_platform("windows", "mingw/liblua.a"), -- FIXME - cfg.variables.LUA_LIBDIR .. "/" .. cfg.variables.LUALIB:gsub("%.so.*$", ".a"), - if_platform("unix", "-ldl"), - if_platform("unix", "-lpthread"), - if_platform("windows", "-mconsole -mwindows"), - "-lm" - }), " ") - print(cmd) - os.execute(cmd) end -------------------------------------------------------------------------------- @@ -500,4 +479,6 @@ generate(MAIN_PROGRAM, "src", { EXCLUDE, "^bin/?" }) end -main() +cfg.init() +fs.init() +generate(MAIN_PROGRAM, "src", {EXCLUDE, "^bin/?"})