Skip to content

Commit

Permalink
switch to GCC 11
Browse files Browse the repository at this point in the history
According to [issue mit-pdos#125 ](mit-pdos#125),
 the problem was found in GCC 11, so switch to GCC 11
  • Loading branch information
sora-blue committed Jul 27, 2022
1 parent 723bd4d commit 20456c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ CFLAGS += $(shell $(CC) -fno-stack-protector -E -x c /dev/null >/dev/null 2>&1 &

# Enable flag -Wno-error=infinite-recursion when available
GCC_VERSION = $(shell $(CC) -dumpversion | cut -d '.' -f1)
ifeq ($(shell echo $(GCC_VERSION) / 12 2>/dev/null | bc | grep -e '^0'), )
ifeq ($(shell echo $(GCC_VERSION) / 11 2>/dev/null | bc | grep -e '^0'), )
CFLAGS += -Wno-error=infinite-recursion
endif
# Disable PIE when possible (for Ubuntu 16.10 toolchain)
Expand Down

0 comments on commit 20456c6

Please sign in to comment.