Commit 065458c1 authored by Rob Izzard's avatar Rob Izzard
Browse files

update flags for valgrind build

parent bd47c82a
Loading
Loading
Loading
Loading
+22 −1
Original line number Diff line number Diff line
@@ -276,6 +276,15 @@ if get_option('valgrind') == true
    # Some new instruction sets are not compatible with
    # Valgrind. Disable these.
    _instruction_sets = [
        'avx512f',
        'avx512pf',
        'avx512er',
        'avx512cd',
        'avx512vl',
        'avx512bw',
        'avx512dq',
        'avx512ifma',
        'avx512vbmi',
        'avx',
        'sse4',
    ]
@@ -289,9 +298,21 @@ if get_option('valgrind') == true
    # flags to give more debugging output for valgrind (or gdb)
    _gflags = [
        'gdb3',
        'split-dwarf',
        'describe-dies',
        'pubnames',
        
        # valgrind cannot handle split-dwarf with dwarf-5, but can
        # do split-dwarf with dwarf-4.
        #
        # current runtimes for valgrind with 2 systems:
        #
        # dwarf-5 without split-dwarf : 29.2s
        # dwarf-4 with split-dwarf : 18.62s
        #
        # so I'd recommend split-dwarf with dwarf-4
        'split-dwarf', 
        'dwarf-4',
        '3'
    ]
    foreach cflag : _gflags
        __cflag = '-g' + cflag