File: do-not-build-with-sanitizers.patch

package info (click to toggle)
etlcpp 20.39.4%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 18,232 kB
  • sloc: cpp: 245,721; ansic: 10,254; sh: 1,481; asm: 301; python: 281; makefile: 24
file content (24 lines) | stat: -rw-r--r-- 812 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
diff --git a/test/meson.build b/test/meson.build
index b84a21b..c1a75c5 100644
--- a/test/meson.build
+++ b/test/meson.build
@@ -288,19 +288,17 @@ if get_option('use_stl')
     compile_args += '-DETL_NO_STL=0'
 elif
     compile_args += '-DETL_NO_STL=1'
 endif
 
 if meson.get_compiler('cpp').get_argument_syntax() == 'gcc'
-    compile_args += '-fsanitize=address,undefined'
     compile_args += '-fexceptions'
     compile_args += '-Wall'
     compile_args += '-Wextra'    
     compile_args += '-Wno-non-virtual-dtor' #TODO remove and fix warning in code
     compile_args += '-Werror'
-    link_args += '-fsanitize=address,undefined'
 endif
 
 threads_dep = dependency('threads')
 unittestcpp_dep = subproject('unittest-cpp').get_variable('unittest_cpp_dep')
 
 etl_unit_tests = executable('etl_unit_tests',