瀏覽代碼

Merge pull request #14672 from akien-mga/openmp-linking

openmp: Simplify linking on X11, fixing clang build
Rémi Verschelde 7 年之前
父節點
當前提交
e3fd61b638
共有 1 個文件被更改,包括 1 次插入2 次删除
  1. 1 2
      platform/x11/detect.py

+ 1 - 2
platform/x11/detect.py

@@ -267,8 +267,7 @@ def configure(env):
 
     if env["openmp"]:
         env.Append(CPPFLAGS=['-fopenmp'])
-        if not env['use_llvm']:
-            env.Append(LIBS=['gomp'])
+        env.Append(LINKFLAGS=['-fopenmp'])
 
     if env['use_static_cpp']:
         env.Append(LINKFLAGS=['-static-libstdc++'])