Skip to content

Instantly share code, notes, and snippets.

@timo
Created July 28, 2019 11:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save timo/e66b190dfde09806f8757a4ce81f1fa7 to your computer and use it in GitHub Desktop.
Save timo/e66b190dfde09806f8757a4ce81f1fa7 to your computer and use it in GitHub Desktop.
diff --git a/src/vm/moar/HLL/Backend.nqp b/src/vm/moar/HLL/Backend.nqp
index 687dcf1a1..787ec8738 100644
--- a/src/vm/moar/HLL/Backend.nqp
+++ b/src/vm/moar/HLL/Backend.nqp
@@ -615,7 +615,9 @@ class HLL::Backend::MoarVM {
my str $template;
if !$want_json && !$want_sql {
- my $temppath := nqp::backendconfig()<prefix> ~ '/share/nqp/lib/profiler/template.html';
+ my $nqpconfig := nqp::hash;
+ hll-config($nqpconfig);
+ my $temppath := $nqpconfig<prefix> ~ '/share/nqp/lib/profiler/template.html';
$template := try slurp('src/vm/moar/profiler/template.html');
unless $template {
$template := try slurp($temppath);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment