summaryrefslogtreecommitdiff
path: root/c_check
diff options
context:
space:
mode:
authorZhang Xianyi <traits.zhang@gmail.com>2013-06-06 23:43:40 +0800
committerZhang Xianyi <traits.zhang@gmail.com>2013-06-06 23:43:40 +0800
commit960b0c88a7f9f1dc08cebcdcf23b29a1c71ad858 (patch)
treee0b0ed44bc04db144077c057019e327de44a710f /c_check
parent65ffead0cf2d0e971167b792294f4f5d866afd99 (diff)
downloadopenblas-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_check5
1 files changed, 5 insertions, 0 deletions
diff --git a/c_check b/c_check
index 566311487..acd8df5f4 100644
--- a/c_check
+++ b/c_check
@@ -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";
}