diff options
author | Brooks Davis <brooks@FreeBSD.org> | 2023-12-06 20:48:46 +0000 |
---|---|---|
committer | Brooks Davis <brooks@FreeBSD.org> | 2023-12-06 20:49:08 +0000 |
commit | fc0288993cdad8a559fcd2c2166cf95f1fa43745 (patch) | |
tree | 83b31d2cf67d9b401cd3b285bd00c6aa939131c2 | |
parent | ec27c0bb3eea73be4db6cd2f275db6c516e12d00 (diff) | |
download | src-fc0288993cdad8a559fcd2c2166cf95f1fa43745.tar.gz src-fc0288993cdad8a559fcd2c2166cf95f1fa43745.zip |
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
-rw-r--r-- | lib/libc/sys/Makefile.inc | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/libc/sys/Makefile.inc b/lib/libc/sys/Makefile.inc index b9ac43bac077..4137699bb741 100644 --- a/lib/libc/sys/Makefile.inc +++ b/lib/libc/sys/Makefile.inc @@ -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/} |