Module Name: src
Committed By: skrll
Date: Tue Oct 12 18:40:01 UTC 2021
Modified Files:
src/tests/usr.bin/c++: asan_common.subr
src/tests/usr.bin/cc: asan_common.subr
Log Message:
asan is supported on aarch64
To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/tests/usr.bin/c++/asan_common.subr
cvs rdiff -u -r1.1 -r1.2 src/tests/usr.bin/cc/asan_common.subr
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/tests/usr.bin/c++/asan_common.subr
diff -u src/tests/usr.bin/c++/asan_common.subr:1.2 src/tests/usr.bin/c++/asan_common.subr:1.3
--- src/tests/usr.bin/c++/asan_common.subr:1.2 Tue Jan 29 20:07:03 2019
+++ src/tests/usr.bin/c++/asan_common.subr Tue Oct 12 18:40:01 2021
@@ -1,4 +1,4 @@
-# $NetBSD: asan_common.subr,v 1.2 2019/01/29 20:07:03 mgorny Exp $
+# $NetBSD: asan_common.subr,v 1.3 2021/10/12 18:40:01 skrll Exp $
#
# Copyright (c) 2018, 2019 The NetBSD Foundation, Inc.
# All rights reserved.
@@ -27,6 +27,10 @@
SUPPORT='n'
test_target() {
+ if uname -p | grep -q "aarch64"; then
+ SUPPORT='y'
+ fi
+
if uname -m | grep -q "amd64"; then
SUPPORT='y'
fi
Index: src/tests/usr.bin/cc/asan_common.subr
diff -u src/tests/usr.bin/cc/asan_common.subr:1.1 src/tests/usr.bin/cc/asan_common.subr:1.2
--- src/tests/usr.bin/cc/asan_common.subr:1.1 Tue Jan 29 19:56:37 2019
+++ src/tests/usr.bin/cc/asan_common.subr Tue Oct 12 18:40:01 2021
@@ -1,4 +1,4 @@
-# $NetBSD: asan_common.subr,v 1.1 2019/01/29 19:56:37 mgorny Exp $
+# $NetBSD: asan_common.subr,v 1.2 2021/10/12 18:40:01 skrll Exp $
#
# Copyright (c) 2018, 2019 The NetBSD Foundation, Inc.
# All rights reserved.
@@ -27,6 +27,10 @@
SUPPORT='n'
test_target() {
+ if uname -p | grep -q "aarch64"; then
+ SUPPORT='y'
+ fi
+
if uname -m | grep -q "amd64"; then
SUPPORT='y'
fi