git: fc0288993cda - main - libc: simplify MDASM/NOASM checks
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 06 Dec 2023 20:49:19 UTC
The branch main has been updated by brooks:
URL: https://cgit.FreeBSD.org/src/commit/?id=fc0288993cdad8a559fcd2c2166cf95f1fa43745
commit fc0288993cdad8a559fcd2c2166cf95f1fa43745
Author: Brooks Davis <brooks@FreeBSD.org>
AuthorDate: 2023-12-06 20:48:46 +0000
Commit: Brooks Davis <brooks@FreeBSD.org>
CommitDate: 2023-12-06 20:49:08 +0000
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
---
lib/libc/sys/Makefile.inc | 4 +---
1 file changed, 1 insertion(+), 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/}