浏览代码

Update xmake.lua

ruki 3 年之前
父节点
当前提交
e1e8d6fbef
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      packages/o/openmp/xmake.lua

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

@@ -79,7 +79,9 @@ package("openmp")
         assert(package:check_csnippets({test = [[
         #include <stdio.h>
         #include <omp.h>
-
+        #ifndef _OPENMP
+        #    error missing openmp flags
+        #endif
         static void test() {
             #pragma omp parallel
             {