openmp: support clang-cl (#2715)

pull/2718/head
star9029 1 year ago committed by GitHub
parent 30bf09689d
commit 4989467d0a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      packages/o/openmp/xmake.lua

@ -30,6 +30,8 @@ package("openmp")
local flagname = toolkind == "cxx" and "cxxflags" or "cflags"
if package:has_tool(toolkind, "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")
elseif package:has_tool(toolkind, "clang", "clangxx") then
if package:is_plat("macosx") then
result[flagname] = "-Xpreprocessor -fopenmp"

Loading…
Cancel
Save