mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 00:32:25 -04:00
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:
parent
ec27c0bb3e
commit
fc0288993c
1 changed files with 1 additions and 3 deletions
|
|
@ -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/}
|
||||
|
|
|
|||
Loading…
Reference in a new issue