mit-pdos / xv6-riscv

Xv6 for RISC-V
Other
6.99k stars 2.58k forks source link

Makefile doesn't use -ffreestanding #269

Open Octocontrabass opened 1 week ago

Octocontrabass commented 1 week ago

Commit dd2574bc1097a912e799340172b8b6ef42ac5ceb removes -ffreestanding from the makefile. The commit message implies that this change might be necessary for GCC to check printf format strings, but it isn't.

Why was the makefile changed? Was it an accident?

TroyMitchell911 commented 1 week ago

I think it is... this option just tells compiler don't depends on standard library.