libc: simplify MDASM/NOASM checks

Use boolean evaluation of :M matches and a single if statement.

Reviewed by:	imp, kib
Sponsored by:	DARPA
Differential Revision:	https://reviews.freebsd.org/D42915
This commit is contained in:
Brooks Davis 2023-12-06 20:48:46 +00:00
parent ec27c0bb3e
commit fc0288993c

View file

@ -98,11 +98,9 @@ SRCS+=${MDASM}
# not declared for no generation of default code (NOASM). Add each
# syscall that satisfies these conditions to the ASM list.
.for _asm in ${MIASM}
.if (${MDASM:R:M${_asm:R}} == "")
.if (${NOASM:R:M${_asm:R}} == "")
.if !${MDASM:R:M${_asm:R}} && !${NOASM:R:M${_asm:R}}
ASM+=$(_asm)
.endif
.endif
.endfor
SASM= ${ASM:S/.o/.S/}