mirror of
https://github.com/pragma-/pbot.git
synced 2025-01-22 10:04:36 +01:00
pbot-vm: fix clang2x
This commit is contained in:
parent
02ca5e4435
commit
1f3110075a
@ -7,6 +7,6 @@ use warnings;
|
||||
use strict;
|
||||
|
||||
package Languages::clang;
|
||||
use parent 'Languages::clang11';
|
||||
use parent 'Languages::clang2x';
|
||||
|
||||
1;
|
||||
|
@ -15,8 +15,8 @@ sub initialize {
|
||||
$self->{sourcefile} = 'prog.c';
|
||||
$self->{execfile} = 'prog';
|
||||
$self->{default_options} = '-Wextra -Wall -Wno-unused -Wno-unused-parameter -pedantic -Wfloat-equal -Wshadow -std=c2x -lm -Wfatal-errors -fsanitize=integer,alignment,undefined -fsanitize-address-use-after-scope -fno-omit-frame-pointer';
|
||||
$self->{options_paste} = '-fdiagnostics-show-caret';
|
||||
$self->{options_nopaste} = '-fno-diagnostics-show-caret';
|
||||
$self->{options_paste} = '-fcaret-diagnostics';
|
||||
$self->{options_nopaste} = '-fno-caret-diagnostics';
|
||||
$self->{cmdline} = 'clang -gdwarf-2 -g3 $sourcefile $options -o $execfile';
|
||||
|
||||
$self->{prelude} = <<'END';
|
||||
|
Loading…
Reference in New Issue
Block a user