Fix Lua static library linking

This commit is contained in:
Michael Krasnyk
2017-01-18 13:15:30 +01:00
committed by Patrick Niklaus
parent c03b230e84
commit 75e0b5a5c4
3 changed files with 10 additions and 4 deletions
+2 -1
View File
@@ -245,8 +245,9 @@ module.exports = function () {
text += data + '\n';
} else {
text += 'local f = assert(io.open("' + lua_profiles_path + '/' + profile + '.lua", "r"))\n';
text += 'local m = assert(loadstring(f:read("*all") .. [[\n' + data + '\n]]))\n';
text += 'local s = f:read("*all") .. [[\n' + data + '\n]]\n';
text += 'f:close()\n';
text += 'local m = assert(loadstring and loadstring(s) or load(s))\n';
text += 'm()\n';
}
this.profileFile = this.profileCacheFile;