mirror of
https://github.com/pragma-/pbot.git
synced 2024-11-20 02:49:49 +01:00
Add -fsanitize=undefined to gcc cmdlines
This commit is contained in:
parent
48bd04ba31
commit
36f2f91ba0
@ -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';
|
||||||
|
@ -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';
|
||||||
|
@ -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';
|
||||||
|
Loading…
Reference in New Issue
Block a user