mirror of
https://github.com/pragma-/pbot.git
synced 2024-12-28 05:32:48 +01:00
Update C++ compiler_vm to gcc 5.0 and use -std=c++14
This commit is contained in:
parent
a15b343752
commit
a8c813e631
@ -12,7 +12,7 @@ sub initialize {
|
||||
$self->{name} = 'c++';
|
||||
$self->{sourcefile} = 'prog.cpp';
|
||||
$self->{execfile} = 'prog';
|
||||
$self->{default_options} = '-std=c++11 -Wextra -Wall -Wno-unused -pedantic -Wfloat-equal -Wshadow -lm -Wfatal-errors';
|
||||
$self->{default_options} = '-std=c++14 -Wextra -Wall -Wno-unused -pedantic -Wfloat-equal -Wshadow -lm -Wfatal-errors -fsanitize=bounds -fsanitize=alignment -fsanitize=undefined';
|
||||
$self->{options_paste} = '-fdiagnostics-show-caret';
|
||||
$self->{options_nopaste} = '-fno-diagnostics-show-caret';
|
||||
$self->{cmdline} = 'g++ -ggdb -g3 $sourcefile $options -o $execfile';
|
||||
@ -35,6 +35,8 @@ sub initialize {
|
||||
#include <tuple>
|
||||
#include <prelude.h>
|
||||
|
||||
using namespace std;
|
||||
|
||||
END
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user