summaryrefslogtreecommitdiffstats
path: root/contrib/netbsd-tests/share/mk/t_prog.sh
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/netbsd-tests/share/mk/t_prog.sh')
-rwxr-xr-xcontrib/netbsd-tests/share/mk/t_prog.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/contrib/netbsd-tests/share/mk/t_prog.sh b/contrib/netbsd-tests/share/mk/t_prog.sh
index d004070..e21f1f6 100755
--- a/contrib/netbsd-tests/share/mk/t_prog.sh
+++ b/contrib/netbsd-tests/share/mk/t_prog.sh
@@ -31,6 +31,10 @@ defaults__build_and_install_head() {
atf_set "require.progs" "/usr/bin/mandoc"
}
defaults__build_and_install_body() {
+ if [ ! -e /usr/bin/gcc -a -e /usr/bin/clang ]; then
+ export HAVE_LLVM=yes
+ fi
+
cat >hello.c <<EOF
#include <stdio.h>
int main(void) { printf("Hello, test!\n"); return 0; }
@@ -61,6 +65,10 @@ EOF
atf_test_case without_man__build_and_install
without_man__build_and_install_body() {
+ if [ ! -e /usr/bin/gcc -a -e /usr/bin/clang ]; then
+ export HAVE_LLVM=yes
+ fi
+
cat >hello.c <<EOF
#include <stdio.h>
int main(void) { printf("Hello, test!\n"); return 0; }
OpenPOWER on IntegriCloud