mirror of
https://git.proxmox.com/git/llvm-toolchain
synced 2025-08-07 10:16:55 +00:00
Fix OpenMP test failing at ci.debian.net
This commit is contained in:
parent
4b21480b15
commit
f260dc5371
4
debian/qualify-clang.sh
vendored
4
debian/qualify-clang.sh
vendored
@ -180,7 +180,7 @@ if test ! -f /usr/lib/llvm-$VERSION/lib/libomp.so; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# OpenMP
|
# OpenMP
|
||||||
echo '
|
cat <<EOF > foo.c
|
||||||
//test.c
|
//test.c
|
||||||
#include "omp.h"
|
#include "omp.h"
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
@ -189,7 +189,7 @@ int main(void) {
|
|||||||
#pragma omp parallel
|
#pragma omp parallel
|
||||||
printf("thread %d\n", omp_get_thread_num());
|
printf("thread %d\n", omp_get_thread_num());
|
||||||
}
|
}
|
||||||
' > foo.c
|
EOF
|
||||||
clang-$VERSION foo.c -fopenmp -o o
|
clang-$VERSION foo.c -fopenmp -o o
|
||||||
./o > /dev/null
|
./o > /dev/null
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user