pbot-vm: fix clang2x

This commit is contained in:
Pragmatic Software 2022-03-19 21:50:43 -07:00
parent 02ca5e4435
commit 1f3110075a
2 changed files with 3 additions and 3 deletions

View File

@ -7,6 +7,6 @@ use warnings;
use strict;
package Languages::clang;
use parent 'Languages::clang11';
use parent 'Languages::clang2x';
1;

View File

@ -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';