123456789101112131415161718192021222324252627282930313233 |
- import os, atexit
- from os.path import join, abspath
- from SCons.Script import GetBuildFailures
- import imp
- AddOption('--no-sanitize', default=True, action='store_false', dest='sanitize', help='Disable sanitizer flags.')
- AddOption('--sanitize', default=True, action='store_true', dest='sanitize', help='Enable sanitizer flags.')
- AddOption('--blas', default=False, action='store_true', dest='use_blas', help='Try to use BLAS (benchmarks only).')
- top = {'skip_summary': True, 'sanitize': GetOption('sanitize'), 'use_blas': GetOption('use_blas')}
- Export('top');
- ra = imp.load_source('ra', 'config/ra.py')
- SConscript('test/SConstruct', 'top')
- SConscript('bench/SConstruct', 'top')
- SConscript('examples/SConstruct', 'top')
- SConscript('box/SConstruct', 'top')
- Default(['test', 'bench', 'examples'])
- atexit.register(lambda: ra.print_summary(GetBuildFailures, 'ra-ra'))
|