Skip to content

Commit 2000ea7

Browse files
committed
Simplify C flag detection
1 parent 96638ea commit 2000ea7

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Makefile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,7 @@ check_flag = $(shell $(CC) $(1) -S -o /dev/null -xc /dev/null 2>/dev/null; \
2626

2727
# Iterate through the list of all potential flags, effectively filtering out all
2828
# unsupported flags.
29-
$(foreach flag, $(CFLAGS_TO_CHECK), $(eval SUPPORTED_CFLAGS += $(call check_flag, $(flag))))
30-
CFLAGS += $(SUPPORTED_CFLAGS)
29+
$(foreach flag, $(CFLAGS_TO_CHECK), $(eval CFLAGS += $(call check_flag, $(flag))))
3130

3231
BUILD_SESSION := .session.mk
3332

0 commit comments

Comments
 (0)