diff options
author | Zhang Xianyi <traits.zhang@gmail.com> | 2013-06-06 23:43:40 +0800 |
---|---|---|
committer | Zhang Xianyi <traits.zhang@gmail.com> | 2013-06-06 23:43:40 +0800 |
commit | 960b0c88a7f9f1dc08cebcdcf23b29a1c71ad858 (patch) | |
tree | e0b0ed44bc04db144077c057019e327de44a710f /c_check | |
parent | 65ffead0cf2d0e971167b792294f4f5d866afd99 (diff) | |
download | openblas-960b0c88a7f9f1dc08cebcdcf23b29a1c71ad858.tar.gz openblas-960b0c88a7f9f1dc08cebcdcf23b29a1c71ad858.tar.bz2 openblas-960b0c88a7f9f1dc08cebcdcf23b29a1c71ad858.zip |
Refs #227. Detected LLVM/Clang compiler.
Diffstat (limited to 'c_check')
-rw-r--r-- | c_check | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -33,6 +33,7 @@ if ($ARGV[0] =~ /(.*)(-[.\d]+)/) { } $compiler = ""; +$compiler = CLANG if ($data =~ /COMPILER_CLANG/); $compiler = PGI if ($data =~ /COMPILER_PGI/); $compiler = PATHSCALE if ($data =~ /COMPILER_PATHSCALE/); $compiler = INTEL if ($data =~ /COMPILER_INTEL/); @@ -117,6 +118,10 @@ if ($compiler eq "OPEN64") { $openmp = "-mp"; } +if ($compiler eq "CLANG") { + $openmp = "-fopenmp"; +} + if ($compiler eq "GCC") { $openmp = "-fopenmp"; } |