From aeafaecbe96c3b5ddd61d22712448bc8ece6f4ca Mon Sep 17 00:00:00 2001 From: Hoildkv <42310255+xq114@users.noreply.github.com> Date: Sun, 5 Dec 2021 23:14:21 +0800 Subject: [PATCH] improve openmp (#739) --- packages/o/openmp/xmake.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/o/openmp/xmake.lua b/packages/o/openmp/xmake.lua index f88b05b5b..7ad1bc872 100644 --- a/packages/o/openmp/xmake.lua +++ b/packages/o/openmp/xmake.lua @@ -4,7 +4,7 @@ package("openmp") set_description("The OpenMP API specification for parallel programming") add_configs("runtime", {description = "Set OpenMP runtime for gcc/clang like compilers.", default = "default", type = "string", values = {"default", "custom"}}) - add_configs("experimental", {description = "Enable experimental OpenMP feature for msvc.", default = true, type = boolean}) + add_configs("experimental", {description = "Enable experimental OpenMP feature for msvc.", default = false, type = boolean}) on_load(function (package) if package.has_tool then @@ -67,6 +67,8 @@ package("openmp") end end end + else + raise("This package(openmp) requires xmake version 2.6.1 or newer.") end return (result.cflags or result.cxxflags) and result end)