Skip to content

Commit 295e29e

Browse files
committed
For -S, fall back to clang if armclang unavailable
Signed-off-by: Dave Rodgman <[email protected]>
1 parent 8af037c commit 295e29e

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

tools/bin/mtest

+6-1
Original file line numberDiff line numberDiff line change
@@ -764,7 +764,12 @@ Build targets: build the library by default, or files (e.g. aes.o), programs (e.
764764
args.compilers = [ MEMSAN_CC ]
765765

766766
if args.size_tfm:
767-
if not args.compilers: args.compilers = [ SIZE_TFM_COMPILER ]
767+
if not args.compilers:
768+
if shutil.which(SIZE_TFM_COMPILER) is not None:
769+
args.compilers = [ SIZE_TFM_COMPILER ]
770+
else:
771+
print("warning: could not find armclang, falling back to clang")
772+
args.compilers = [ "clang" ]
768773
args.size = True
769774

770775
if not args.compilers:

0 commit comments

Comments
 (0)