mit-pdos / xv6-riscv

Xv6 for RISC-V
Other
6.6k stars 2.38k forks source link

Makefile: enable `-Wno-error=infinite-recursion` only in GCC 11 or higher #131

Closed sora-blue closed 1 year ago

sora-blue commented 1 year ago

According to issue #130 , flag -Wno-error=infinite-recursion will break compilation for all gcc versions prior to 11. This PR is to fix it by making it available only in GCC 11 or higher. I've tested it on Debian and it works fine.

FlyyingPiggy2020 commented 1 year ago

谢谢,成功解决了我的问题。 我在wsl+Ubuntu20.04的开发环境上也出现了这个问题。 你的方法成功解决了它。