فهرست منبع

improve openmp (#4141)

ruki 1 سال پیش
والد
کامیت
f6c096e97d
1فایلهای تغییر یافته به همراه5 افزوده شده و 0 حذف شده
  1. 5 0
      packages/o/openmp/xmake.lua

+ 5 - 0
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