Fix missing -c option in AVX512 test
authorMartin Kroeker <martin@ruby.chemie.uni-freiburg.de>
Mon, 25 Feb 2019 16:55:36 +0000 (17:55 +0100)
committerGitHub <noreply@github.com>
Mon, 25 Feb 2019 16:55:36 +0000 (17:55 +0100)
c_check

diff --git a/c_check b/c_check
index 38f9170..d93b756 100644 (file)
--- a/c_check
+++ b/c_check
@@ -232,7 +232,7 @@ if (($architecture eq "x86") || ($architecture eq "x86_64")) {
        ($fh,$tmpf) = tempfile( UNLINK => 1 );
        $code = '"vbroadcastss -4 * 4(%rsi), %zmm2"';
        print $tmpf "#include <immintrin.h>\n\nint main(void){ __asm__ volatile($code); }\n";
-       $args = " -march=skylake-avx512 -o $tmpf.o -x c $tmpf";
+       $args = " -march=skylake-avx512 -c -o $tmpf.o -x c $tmpf";
        my @cmd = ("$compiler_name $args >/dev/null 2>/dev/null");
        system(@cmd) == 0;
        if ($? != 0) {