Skip to content

Commit 9a9f8ee

Browse files
committed
No, variables set on the command line don't trigger a build.mk regeneration.
1 parent c9e05bc commit 9a9f8ee

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

Makefile

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,9 @@ DEFAULT_PLATFORM ?= pc86
99

1010
# Which architectures should get built?
1111

12-
PLATS =
13-
# PLATS = all
12+
$(if $(PLATS), $(error Don't set PLATS on the command line, because reasons. Edit the Makefile instead.))
13+
PLATS = all
1414
# PLATS = linux386 linuxppc linuxmips
15-
$(if $(PLATS),, $(error Supply PLATS='something' to specify which architectures to build for. (Use 'all' for all of them.) (Edit the Makefile to set the default.))
1615

1716
# Where should the ACK put its temporary files?
1817

@@ -44,10 +43,6 @@ CFLAGS ?= -g -Os \
4443
-DUNREACHABLE_CODE='__builtin_unreachable()' \
4544
-DNORETURN=_Noreturn
4645

47-
ifeq ($(OS),Windows_NT)
48-
CFLAGS += -DWIN32
49-
endif
50-
5146
HOSTCFLAGS = $(CFLAGS)
5247
ACKCFLAGS = -O
5348

0 commit comments

Comments
 (0)