b3c6ec2b | 09-Aug-2016 |
zrj <rimvydas.jasinskas@gmail.com> |
sys.mk: Introduce WORLD_CCOPTLEVEL.
After checking out what other compilers than gcc do decided to cave in and leave 3 recently added NO_* knobs (yep, there are worse compilers). Not to make matters
sys.mk: Introduce WORLD_CCOPTLEVEL.
After checking out what other compilers than gcc do decided to cave in and leave 3 recently added NO_* knobs (yep, there are worse compilers). Not to make matters worse and continue with the work, now pushing just infrastructure bits for further testing.
WORLD_CCOPTLEVEL controls the optimization level for used -Ox compiler flag. For now make it default to previous -O. Also make initial separation between kernel and userland.
Optimization level can be selected globally from /etc/make.conf like: WORLD_CCOPTLEVEL=2 # valid values are 0,1,2,3,s,g,fast
Use of -O3 and -Ofast is strongly discouraged.
show more ...
|