Ver código fonte

improve openmp (#908)

Hoildkv 3 anos atrás
pai
commit
56784a4b04
1 arquivos alterados com 1 adições e 4 exclusões
  1. 1 4
      packages/o/openmp/xmake.lua

+ 1 - 4
packages/o/openmp/xmake.lua

@@ -46,9 +46,7 @@ package("openmp")
                     result[flagname] = "-Qopenmp"
                 end
                 if package:config("runtime") == "default" then
-                    if package:has_tool(toolkind, "cl") then
-                        result.ldflags = "/openmp"
-                    elseif package:has_tool(toolkind, "clang", "clangxx") then
+                    if package:has_tool(toolkind, "clang", "clangxx") then
                         if not package:is_plat("macosx") then
                             result.ldflags = "-fopenmp"
                         end
@@ -62,7 +60,6 @@ package("openmp")
                 end
                 if package:config("runtime") == "custom" then
                     if package:has_tool(toolkind, "cl") then
-                        result.ldflags = "/openmp"
                         result.ldflags = "/nodefaultlib:vcomp"
                     end
                 end