improve openmp (#4141)

pull/4143/head
ruki 6 months ago committed by GitHub
parent 58a7e8c244
commit f6c096e97d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 5
      packages/o/openmp/xmake.lua

@ -60,18 +60,23 @@ package("openmp")
if package:has_tool(toolkind, "clang", "clangxx") then
if not package:is_plat("macosx") then
result.ldflags = "-fopenmp"
result.shflags = "-fopenmp"
end
elseif package:has_tool(toolkind, "gcc", "gxx", "gfortran") then
result.ldflags = "-fopenmp"
result.shflags = "-fopenmp"
elseif package:has_tool(toolkind, "icc", "icpc") then
result.ldflags = "-qopenmp"
result.shflags = "-qopenmp"
elseif package:has_tool(toolkind, "icl") then
result.ldflags = "-Qopenmp"
result.shflags = "-Qopenmp"
end
end
if package:config("runtime") == "custom" then
if package:has_tool(toolkind, "cl") then
result.ldflags = "/nodefaultlib:vcomp"
result.shflags = "/nodefaultlib:vcomp"
end
end
end

Loading…
Cancel
Save