improve openmp (#739)

pull/740/head
Hoildkv 3 years ago committed by GitHub
parent b335ecb5d3
commit aeafaecbe9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      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)

Loading…
Cancel
Save