From c44d6060e82fc332e0f7370398bcbbaed7278543 Mon Sep 17 00:00:00 2001 From: ruki Date: Thu, 1 Jul 2021 14:46:26 +0800 Subject: fix manifest vars --- xmake/core/package/package.lua | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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 -- cgit v1.3.1