Skip to content

Commit 06348c5

Browse files
committed
[sw, cmake] Enable optimization O1
This makes binaries smaller and faster to run tests Signed-off-by: Douglas Reis <doreis@lowrisc.org>
1 parent 70d1d62 commit 06348c5

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

sw/cheri_toolchain.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,14 @@ set(CMAKE_CXX_STANDARD_REQUIRED TRUE)
3232
set(LDS_DIR "${CMAKE_SOURCE_DIR}/device/lib/boot")
3333

3434
string(CONCAT CMAKE_CXX_FLAGS_INIT
35-
"-std=c++20 -O0 -g"
35+
"-std=c++20 -O1 -g"
3636
" -ffreestanding -static"
3737
" -fno-builtin -fno-exceptions -fno-c++-static-destructors -fno-rtti"
3838
" -Wall -Wextra"
3939
)
4040

4141
string(CONCAT CMAKE_C_FLAGS_INIT
42-
"-std=c99 -O0 -g"
42+
"-std=c99 -O1 -g"
4343
" -ffreestanding -static"
4444
" -fno-builtin"
4545
" -Wall -Wextra"

0 commit comments

Comments
 (0)