make project more portable
@@ -186,8 +186,17 @@ function _make_targetinfo(mode, arch, target)
end
end
for k, v in pairs(setrunenvs) do
+ if #v == 1 then
+ v = v[1]
+ if path.is_absolute(v) and v:startswith(project.directory()) then
+ runenvs[k] = _make_dirs(v)
+ else
+ runenvs[k] = v[1]
+ end
+ else
runenvs[k] = path.joinenv(v)
end
+ end
local runenvstr = {}
for k, v in pairs(runenvs) do
table.insert(runenvstr, k .. "=" .. v)
