mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-02 22:54:52 +00:00
308a28d6cd
Relevant/interesting changes: o parse.c: fix out-of-bounds read when parsing an invalid line https://bugs.freebsd.org/265119 fix memory leak in wildcard targets and sources fix off-by-one error in buffer for .WAIT nodes o allow to randomize build order of targets .MAKE.MODE += randomize-targets can help uncover dependency bugs
21 lines
583 B
Makefile
21 lines
583 B
Makefile
# $NetBSD: opt-x-reduce-exported.mk,v 1.3 2022/05/08 07:27:50 rillig Exp $
|
|
#
|
|
# Tests for the -X command line option, which prevents variables passed on the
|
|
# command line from being exported to the environment of child commands.
|
|
|
|
# The variable 'BEFORE' is exported, the variable 'AFTER' isn't.
|
|
.MAKEFLAGS: BEFORE=before -X AFTER=after
|
|
|
|
all: .PHONY ordinary submake
|
|
|
|
ordinary: .PHONY
|
|
@echo 'ordinary:'
|
|
@env | sort | grep -e '^BEFORE' -e '^AFTER'
|
|
|
|
submake: .PHONY
|
|
@echo 'submake:'
|
|
@${MAKE} -r -f ${MAKEFILE} show-env
|
|
|
|
show-env: .PHONY
|
|
@env | sort | grep -e '^BEFORE' -e '^AFTER'
|