3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-12-25 04:02:37 +01:00

Add -fsanitize=undefined to gcc cmdlines

This commit is contained in:
Pragmatic Software 2015-01-21 17:43:13 -08:00
parent 48bd04ba31
commit 36f2f91ba0
3 changed files with 3 additions and 3 deletions

View File

@ -11,7 +11,7 @@ sub initialize {
$self->{sourcefile} = 'prog.c'; $self->{sourcefile} = 'prog.c';
$self->{execfile} = 'prog'; $self->{execfile} = 'prog';
$self->{default_options} = '-Wextra -Wall -Wno-unused -pedantic -Wfloat-equal -Wshadow -std=c11 -lm -Wfatal-errors -fsanitize=bounds -fsanitize=alignment'; $self->{default_options} = '-Wextra -Wall -Wno-unused -pedantic -Wfloat-equal -Wshadow -std=c11 -lm -Wfatal-errors -fsanitize=bounds -fsanitize=alignment -fsanitize=undefined';
$self->{options_paste} = '-fdiagnostics-show-caret'; $self->{options_paste} = '-fdiagnostics-show-caret';
$self->{options_nopaste} = '-fno-diagnostics-show-caret'; $self->{options_nopaste} = '-fno-diagnostics-show-caret';
$self->{cmdline} = 'gcc -ggdb -g3 $sourcefile $options -o $execfile'; $self->{cmdline} = 'gcc -ggdb -g3 $sourcefile $options -o $execfile';

View File

@ -11,7 +11,7 @@ sub initialize {
$self->{sourcefile} = 'prog.c'; $self->{sourcefile} = 'prog.c';
$self->{execfile} = 'prog'; $self->{execfile} = 'prog';
$self->{default_options} = '-Wextra -Wall -Wno-unused -pedantic -Wfloat-equal -Wshadow -std=c89 -lm -Wfatal-errors -fsanitize=bounds -fsanitize=alignment'; $self->{default_options} = '-Wextra -Wall -Wno-unused -pedantic -Wfloat-equal -Wshadow -std=c89 -lm -Wfatal-errors -fsanitize=bounds -fsanitize=alignment -fsanitize=undefined';
$self->{options_paste} = '-fdiagnostics-show-caret'; $self->{options_paste} = '-fdiagnostics-show-caret';
$self->{options_nopaste} = '-fno-diagnostics-show-caret'; $self->{options_nopaste} = '-fno-diagnostics-show-caret';
$self->{cmdline} = 'gcc -ggdb -g3 $sourcefile $options -o $execfile'; $self->{cmdline} = 'gcc -ggdb -g3 $sourcefile $options -o $execfile';

View File

@ -11,7 +11,7 @@ sub initialize {
$self->{sourcefile} = 'prog.c'; $self->{sourcefile} = 'prog.c';
$self->{execfile} = 'prog'; $self->{execfile} = 'prog';
$self->{default_options} = '-Wextra -Wall -Wno-unused -pedantic -Wfloat-equal -Wshadow -std=c99 -lm -Wfatal-errors -fsanitize=bounds -fsanitize=alignment'; $self->{default_options} = '-Wextra -Wall -Wno-unused -pedantic -Wfloat-equal -Wshadow -std=c99 -lm -Wfatal-errors -fsanitize=bounds -fsanitize=alignment -fsanitize=undefined';
$self->{options_paste} = '-fdiagnostics-show-caret'; $self->{options_paste} = '-fdiagnostics-show-caret';
$self->{options_nopaste} = '-fno-diagnostics-show-caret'; $self->{options_nopaste} = '-fno-diagnostics-show-caret';
$self->{cmdline} = 'gcc -ggdb -g3 $sourcefile $options -o $execfile'; $self->{cmdline} = 'gcc -ggdb -g3 $sourcefile $options -o $execfile';