git: sys.mk: Introduce WORLD_CCOPTLEVEL.

Rimvydas Jasinskas zrj at crater.dragonflybsd.org
Fri Aug 12 02:15:57 PDT 2016


commit b3c6ec2b467a9324ebfcbb0080d4b34d7b888e22
Author: zrj <rimvydas.jasinskas at gmail.com>
Date:   Tue Aug 9 15:38:28 2016 +0300

    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.

Summary of changes:
 etc/defaults/make.conf       |  6 ++++++
 share/man/man5/make.conf.5   | 17 ++++++++++++-----
 share/mk/sys.mk              |  6 ++++--
 sys/conf/kmod.mk             |  1 +
 usr.sbin/cpucontrol/Makefile |  1 -
 5 files changed, 23 insertions(+), 8 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/b3c6ec2b467a9324ebfcbb0080d4b34d7b888e22


-- 
DragonFly BSD source repository


More information about the Commits mailing list