bfg9000 icon indicating copy to clipboard operation
bfg9000 copied to clipboard

Add option presets

Open jimporter opened this issue 4 years ago • 0 comments

It might be useful to allow build.bfg authors to add "option presets" to their config, allowing easy ways to set up build variants (debug, release, etc). What would this look like though? One option would be something like:

global_options([...], lang='c++', preset='debug')

executable(
    'exe',
    'src.cpp',
    compile_options=opts.preset([...], 'release')
)

jimporter avatar Mar 11 '20 06:03 jimporter