pull/2725/head
star9029 1 year ago committed by GitHub
parent fb8c3ac702
commit cdac053577
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 7
      packages/o/openmp/xmake.lua

@ -28,10 +28,11 @@ package("openmp")
if package.has_tool then
for _, toolkind in ipairs({"cc", "cxx"}) do
local flagname = toolkind == "cxx" and "cxxflags" or "cflags"
if package:has_tool(toolkind, "cl") then
if package:has_tool(toolkind, "cl", "clang_cl") then
result[flagname] = (package:config("experimental") and "/openmp:experimental" or "/openmp")
elseif package:has_tool(toolkind, "clang_cl") then
result[flagname] = "-Xclang" .. (package:config("experimental") and "/openmp:experimental" or "/openmp")
if package:has_tool(toolkind, "clang_cl") then
result.links = "libomp"
end
elseif package:has_tool(toolkind, "clang", "clangxx") then
if package:is_plat("macosx") then
result[flagname] = "-Xpreprocessor -fopenmp"

Loading…
Cancel
Save