File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
tools/testing/selftests/nolibc Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -16,9 +16,10 @@ build_location="$(realpath "${cache_dir}"/nolibc-tests/)"
16
16
perform_download=0
17
17
test_mode=system
18
18
werror=1
19
+ llvm=
19
20
archs=" i386 x86_64 arm64 arm mips32le mips32be ppc ppc64 ppc64le riscv s390 loongarch"
20
21
21
- TEMP=$( getopt -o ' j:d:c:b:a:m:peh ' -n " $0 " -- " $@ " )
22
+ TEMP=$( getopt -o ' j:d:c:b:a:m:pelh ' -n " $0 " -- " $@ " )
22
23
23
24
eval set -- " $TEMP "
24
25
unset TEMP
@@ -42,6 +43,7 @@ Options:
42
43
-b [DIR] Build location (default: ${build_location} )
43
44
-m [MODE] Test mode user/system (default: ${test_mode} )
44
45
-e Disable -Werror
46
+ -l Build with LLVM/clang
45
47
EOF
46
48
}
47
49
@@ -71,6 +73,9 @@ while true; do
71
73
' -e' )
72
74
werror=0
73
75
shift ; continue ;;
76
+ ' -l' )
77
+ llvm=1
78
+ shift ; continue ;;
74
79
' -h' )
75
80
print_usage
76
81
exit 0
@@ -143,7 +148,7 @@ test_arch() {
143
148
if [ " $werror " -ne 0 ]; then
144
149
CFLAGS_EXTRA=" $CFLAGS_EXTRA -Werror"
145
150
fi
146
- MAKE=(make -j" ${nproc} " XARCH=" ${arch} " CROSS_COMPILE=" ${cross_compile} " O=" ${build_dir} " )
151
+ MAKE=(make -j" ${nproc} " XARCH=" ${arch} " CROSS_COMPILE=" ${cross_compile} " LLVM= " ${llvm} " O=" ${build_dir} " )
147
152
148
153
mkdir -p " $build_dir "
149
154
if [ " $test_mode " = " system" ] && [ ! -f " ${build_dir} /.config" ]; then
You can’t perform that action at this time.
0 commit comments