Skip to content

Commit 9f7e168

Browse files
committed
Define different optimisation flags for release and debug.
-Og provides "a reasonable level of optimization while maintaining fast compilation and a good debugging experience".
1 parent 0277e57 commit 9f7e168

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

platform.txt

+2
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ compiler.warning_flags.more=-Wall
1515
compiler.warning_flags.all=-Wall -Wextra
1616

1717
compiler.optimization_flags=-Os
18+
compiler.optimization_flags.release=-Os
19+
compiler.optimization_flags.debug=-Og
1820

1921
compiler.path={build.compiler_path}
2022
compiler.c.cmd={build.crossprefix}gcc

0 commit comments

Comments
 (0)