|
@@ -7,20 +7,18 @@ incdir = include_directories(
|
|
|
'../../includes/',
|
|
|
'../../../dasynq/include/'
|
|
|
)
|
|
|
-if fuzzer or unit_tests
|
|
|
- sources = [
|
|
|
- '../test-bpsys.cc',
|
|
|
- '../test-dinit.cc',
|
|
|
- '../test-run-child-proc.cc',
|
|
|
- '../../control.cc',
|
|
|
- '../../dinit-log.cc',
|
|
|
- '../../service.cc',
|
|
|
- '../../load-service.cc',
|
|
|
- '../../proc-service.cc',
|
|
|
- '../../baseproc-service.cc',
|
|
|
- '../../dinit-env.cc'
|
|
|
- ]
|
|
|
-endif
|
|
|
+sources = [
|
|
|
+ '../test-bpsys.cc',
|
|
|
+ '../test-dinit.cc',
|
|
|
+ '../test-run-child-proc.cc',
|
|
|
+ '../../control.cc',
|
|
|
+ '../../dinit-log.cc',
|
|
|
+ '../../service.cc',
|
|
|
+ '../../load-service.cc',
|
|
|
+ '../../proc-service.cc',
|
|
|
+ '../../baseproc-service.cc',
|
|
|
+ '../../dinit-env.cc'
|
|
|
+]
|
|
|
|
|
|
## dinit with libfuzzer can't be compiled without clang/clang++. For some reasons, Meson don't support set default compiler in default_options.
|
|
|
if fuzzer and compiler.get_id() != 'clang'
|
|
@@ -34,9 +32,9 @@ if unit_tests
|
|
|
'cptests',
|
|
|
'cptests.cc',
|
|
|
sources,
|
|
|
- include_directories : incdir
|
|
|
+ include_directories: incdir
|
|
|
)
|
|
|
- test('cptests', cptests_exec, suite : 'unit_tests')
|
|
|
+ test('cptests', cptests_exec, suite: 'unit_tests')
|
|
|
endif
|
|
|
# LLVM's Libfuzzer
|
|
|
if fuzzer
|
|
@@ -44,9 +42,9 @@ if fuzzer
|
|
|
'fuzz',
|
|
|
'fuzz.cc',
|
|
|
sources,
|
|
|
- include_directories : incdir,
|
|
|
- install : false,
|
|
|
- cpp_args : '-fsanitize=address,undefined,fuzzer-no-link,leak',
|
|
|
- link_args : '-fsanitize=fuzzer,address,undefined,leak'
|
|
|
+ include_directories: incdir,
|
|
|
+ install: false,
|
|
|
+ cpp_args: '-fsanitize=address,undefined,fuzzer-no-link,leak',
|
|
|
+ link_args: '-fsanitize=fuzzer,address,undefined,leak'
|
|
|
)
|
|
|
endif
|