summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xmake/core/package/package.lua8
1 files changed, 7 insertions, 1 deletions
diff --git a/xmake/core/package/package.lua b/xmake/core/package/package.lua
index f573e8623..1e3d2172b 100644
--- a/xmake/core/package/package.lua
+++ b/xmake/core/package/package.lua
@@ -254,7 +254,13 @@ function _instance:artifacts_set(artifacts_info)
local manifest = package:manifest_load()
if not manifest then
os.raise("package(%s): load manifest.txt failed when installing artifacts!", package:displayname())
- end
+ end
+ local vars = manifest.vars
+ if vars then
+ for k, v in pairs(vars) do
+ package:set(k, v)
+ end
+ end
end)
self._IS_PRECOMPILED = true
end