From d65a68ae325fad3860836518a0ca178150f29e3a Mon Sep 17 00:00:00 2001 From: Pragmatic Software Date: Fri, 10 May 2019 05:02:32 -0700 Subject: [PATCH] compiler_vm: add libvirt compiler.xml configuration --- modules/compiler_vm/compiler_watchdog.pl | 1 + .../compiler_vm/languages/server/_c_base.pm | 2 +- modules/compiler_vm/misc/compiler.xml | 145 ++++++++++++++++++ 3 files changed, 147 insertions(+), 1 deletion(-) create mode 100644 modules/compiler_vm/misc/compiler.xml diff --git a/modules/compiler_vm/compiler_watchdog.pl b/modules/compiler_vm/compiler_watchdog.pl index 40196ced..ed650440 100755 --- a/modules/compiler_vm/compiler_watchdog.pl +++ b/modules/compiler_vm/compiler_watchdog.pl @@ -79,6 +79,7 @@ sub execute { next if not length $line; <$out> and next if $line =~ m/^\(gdb\) No line \d+ in/; next if $line =~ m/^\(gdb\) No symbol table/; + next if $line =~ m/^\[Detaching from/; next if $line =~ m/^\[New Thread/; next if $line =~ m/^\(gdb\) Continuing/; next if $line =~ m/^\(gdb\) \$\d+ = "~Ok\.~"/; diff --git a/modules/compiler_vm/languages/server/_c_base.pm b/modules/compiler_vm/languages/server/_c_base.pm index 82e5083a..4a6da1f1 100755 --- a/modules/compiler_vm/languages/server/_c_base.pm +++ b/modules/compiler_vm/languages/server/_c_base.pm @@ -46,7 +46,7 @@ sub postprocess { if (not length $result) { $self->{no_output} = 1; } elsif ($self->{code} =~ m/print_last_statement\(.*\);$/m - && ($result =~ m/A syntax error in expression/ || $result =~ m/No symbol.*in current context/ || $result =~ m/Can't take address of.*which isn't an lvalue/)) { + && ($result =~ m/A syntax error in expression/ || $result =~ m/No symbol.*in current context/ || $result =~ m/has unknown return type; cast the call to its declared/ || $result =~ m/Can't take address of.*which isn't an lvalue/)) { # strip print_last_statement and rebuild/re-run $self->{code} =~ s/print_last_statement\((.*)\);/$1;/mg; $self->preprocess; diff --git a/modules/compiler_vm/misc/compiler.xml b/modules/compiler_vm/misc/compiler.xml new file mode 100644 index 00000000..edf9720a --- /dev/null +++ b/modules/compiler_vm/misc/compiler.xml @@ -0,0 +1,145 @@ + + compiler + a0955f41-1fb8-48b5-93ea-76319ad07c2f + 1048576 + 1048576 + 4 + 1 + + /machine + + + hvm + + + + + + + + + + + + + + + + + + + + + + + + + destroy + restart + destroy + + + + + + /usr/bin/kvm-spice + + + + + +
+ + + + + +
+ + +
+ + + +
+ + + +
+ + + +
+ + +
+ + +
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + +
+ + + +
+ + +
+ + + + + + + + +
+ +