summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2021-07-01 14:46:26 +0800
committerGitHub <[email protected]>2021-07-01 14:46:26 +0800
commitc44d6060e82fc332e0f7370398bcbbaed7278543 (patch)
treeddf8b936963faaae64b23813cbb6847e73bc5f06
parent956e7b7db9408601c332c2dfbe9a8d45771f3ee1 (diff)
fix manifest vars
-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