From a46cef21f43e6d3a7db3d6b0ee94462e1ec57c3f Mon Sep 17 00:00:00 2001 From: ruki Date: Sat, 4 Dec 2021 22:09:51 +0800 Subject: [PATCH] Update xmake.lua (#735) --- packages/o/openmp/xmake.lua | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/packages/o/openmp/xmake.lua b/packages/o/openmp/xmake.lua index dbb2cd521..0b7260d50 100644 --- a/packages/o/openmp/xmake.lua +++ b/packages/o/openmp/xmake.lua @@ -58,8 +58,11 @@ package("openmp") return end end - -- need to detect the existance of flags - return {} + -- we need fetch the installed flags in on_load + local manifest = package:manifest_load() + if manifest then + return manifest.vars + end end) on_install("linux", "macosx", "windows", function (package)