Browse Source

Update xmake.lua

ruki 3 years ago
parent
commit
e1e8d6fbef
1 changed files with 3 additions and 1 deletions
  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 = [[
         assert(package:check_csnippets({test = [[
         #include <stdio.h>
         #include <stdio.h>
         #include <omp.h>
         #include <omp.h>
-
+        #ifndef _OPENMP
+        #    error missing openmp flags
+        #endif
         static void test() {
         static void test() {
             #pragma omp parallel
             #pragma omp parallel
             {
             {