mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 11:37:45 +00:00
Kernel: Build with -O2 by default
We used to build with -Os in order to fit within a certain size, but there isn't really a good reason for that kind of restriction. Switching to -O2 yields a significant improvement in throughput, for example `test-js` is roughly 20% faster on my machine. :^)
This commit is contained in:
parent
39e3c68e94
commit
13680ae038
2 changed files with 2 additions and 2 deletions
|
@ -2,7 +2,7 @@ if (ENABLE_EXTRA_KERNEL_DEBUG_SYMBOLS)
|
|||
add_compile_options(-Og)
|
||||
add_compile_options(-ggdb3)
|
||||
else()
|
||||
add_compile_options(-Os)
|
||||
add_compile_options(-O2)
|
||||
endif()
|
||||
|
||||
if ("${SERENITY_ARCH}" STREQUAL "aarch64")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue