From 7f5933f02ab229cabb1ad2bb1a900ef2a9165ed3 Mon Sep 17 00:00:00 2001 From: Adam Harrison Date: Sun, 12 May 2024 16:24:32 -0400 Subject: Updated meson and build.sh to remove source context for LPM_STATIC builds. --- meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'meson.build') diff --git a/meson.build b/meson.build index e6e294e..a25d1eb 100644 --- a/meson.build +++ b/meson.build @@ -50,7 +50,7 @@ if get_option('static') lpm_source += configure_file( capture: false, - command: [lua_exe, '-e', 'f = string.dump(assert(loadfile("@INPUT0@"))) io.open("@OUTPUT0@", "wb"):write("unsigned char lpm_luac[] = \"" .. f:gsub(".", function (c) return string.format("\\\x%02X",string.byte(c)) end) .. "\";unsigned int lpm_luac_len = " .. #f .. ";")'], + command: [lua_exe, '-e', 'f = string.dump(assert(load(io.lines("@INPUT@","L"), "=lpm.lua")) io.open("@OUTPUT0@", "wb"):write("unsigned char lpm_luac[] = \"" .. f:gsub(".", function (c) return string.format("\\\x%02X",string.byte(c)) end) .. "\";unsigned int lpm_luac_len = " .. #f .. ";")'], input: files('src/lpm.lua'), output: 'lpm.lua.c' ) -- cgit v1.2.3