Changeset d18c643 in rtems-libbsd for wscript


Ignore:
Timestamp:
Oct 2, 2017, 7:57:04 AM (2 years ago)
Author:
Christian Mauderer <Christian.Mauderer@…>
Branches:
c1e05b9ea378b2971e3d7704779112b4bc4296da, 4a77611a223ea883fb548679b516d326a020d447
Children:
67cbb9d
Parents:
a70edfc
git-author:
Christian Mauderer <Christian.Mauderer@…> (10/02/17 07:57:04)
git-committer:
Sebastian Huber <sebastian.huber@…> (10/02/17 12:18:52)
Message:

Allow to set optimization level during configure.

This allows to set the optimization level for libbsd via a configure
switch. Useful for building with for example no optimization during
debug or with size optimization for space restricted targets.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wscript

    ra70edfc rd18c643  
    6969                   dest = "freebsd_options",
    7070                   help = "Set FreeBSD options (developer option).")
     71    opt.add_option("--optimization",
     72                   action = "store",
     73                   default = "2",
     74                   dest = "optimization",
     75                   help = "Set optimization level to OPTIMIZATION (-On compiler flag). Default is 2 (-O2).")
    7176    libbsd_waf.options(opt)
    7277
     
    8994    conf.env.NET_CONFIG = conf.options.net_config
    9095    conf.env.FREEBSD_OPTIONS =conf.options.freebsd_options
     96    conf.env.OPTIMIZATION = conf.options.optimization
    9197    rtems.configure(conf, bsp_configure)
    9298    libbsd_waf.configure(conf)
Note: See TracChangeset for help on using the changeset viewer.