Skip to content

Commit

Permalink
release build flags (#1534)
Browse files Browse the repository at this point in the history
* release build flags

* typo

Co-authored-by: brian crabtree <[email protected]>
  • Loading branch information
tehn and tehn authored Mar 20, 2022
1 parent a1c31f1 commit c90b958
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 5 deletions.
20 changes: 15 additions & 5 deletions crone/wscript
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,19 @@ def build(bld):
'softcut/softcut-lib/src/Voice.cpp'
]

crone_flags = [ '-std=c++14',
'-O2',
'-Wall'
]

if bld.env.NORNS_RELEASE:
crone_flags += [ '-mcpu=cortex-a53',
'-mtune=cortex-a53',
'-mfpu=neon-fp-armv8',
'-mfloat-abi=hard',
'-funsafe-math-optimizations'
]

bld.program( features='c cxx cxxprogram',
source=crone_sources,
target='crone',
Expand All @@ -46,8 +59,5 @@ def build(bld):
'm',
'sndfile'
],
cxxflags=[
'-std=c++14',
'-O2',
'-Wall'
])
cxxflags=crone_flags
)
5 changes: 5 additions & 0 deletions wscript
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ def get_version_hash():
def options(opt):
opt.load('compiler_c compiler_cxx')
opt.add_option('--desktop', action='store_true', default=False)
opt.add_option('--release', action='store_true', default=False)
opt.add_option('--enable-ableton-link', action='store_true', default=True)
opt.add_option('--profile-matron', action='store_true', default=False)

Expand Down Expand Up @@ -57,6 +58,10 @@ def configure(conf):
conf.define('NORNS_DESKTOP', True)
conf.env.NORNS_DESKTOP = conf.options.desktop

if conf.options.release:
conf.define('NORNS_RELEASE', True)
conf.env.NORNS_RELEASE = conf.options.release

conf.env.ENABLE_ABLETON_LINK = conf.options.enable_ableton_link
conf.define('HAVE_ABLETON_LINK', conf.options.enable_ableton_link)

Expand Down

0 comments on commit c90b958

Please sign in to comment.