Skip to content

Commit

Permalink
add --minimal build flag
Browse files Browse the repository at this point in the history
  • Loading branch information
adeebshihadeh committed Aug 24, 2023
1 parent bf8db88 commit 6143336
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion SConscript
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ else:
envCython.Program('visionipc/visionipc_pyx.so', 'visionipc/visionipc_pyx.pyx',
LIBS=vipc_libs, FRAMEWORKS=vipc_frameworks)

if GetOption('test'):
if GetOption('extras'):
env.Program('messaging/test_runner', ['messaging/test_runner.cc', 'messaging/msgq_tests.cc'], LIBS=[messaging_lib, common])

env.Program('visionipc/test_runner', ['visionipc/test_runner.cc', 'visionipc/visionipc_tests.cc'],
Expand Down
8 changes: 5 additions & 3 deletions SConstruct
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,11 @@ libpath = [
'/opt/homebrew/lib',
]

AddOption('--test',
action='store_true',
help='build test files')
AddOption('--minimal',
action='store_false',
dest='extras',
default=True,
help='the minimum build. no tests, tools, etc.')

AddOption('--asan',
action='store_true',
Expand Down

0 comments on commit 6143336

Please sign in to comment.