Skip to content

Commit

Permalink
add --minimal build flag (#523)
Browse files Browse the repository at this point in the history
* add --minimal build flag

* update that
  • Loading branch information
adeebshihadeh authored Aug 24, 2023
1 parent bf8db88 commit 82bca3a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
- name: C++ tests
run: |
$RUN "export ${{ matrix.backend }}=1 && \
scons --test ${{ matrix.flags }} -j$(nproc) && \
scons ${{ matrix.flags }} -j$(nproc) && \
messaging/test_runner && \
visionipc/test_runner"
- name: python tests
Expand Down
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 82bca3a

Please sign in to comment.