We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1a6d4e4 commit 00eaa35Copy full SHA for 00eaa35
src/HLL/Compiler.nqp
@@ -282,7 +282,8 @@ class HLL::Compiler does HLL::Backend::Default {
282
my $split := nqp::split('|||', %adverbs<libpath>);
283
$*LIBPATH := nqp::list_s();
284
for $split -> $str {
285
- nqp::push_s($*LIBPATH, $str);
+ my $absolute := nqp::getcomp('JavaScript').eval('return (function(path) {return require("path").resolve(process.cwd(), path)})')(~$str);
286
+ nqp::push_s($*LIBPATH, $absolute);
287
}
288
nqp::getcomp('JavaScript').eval('return (function(paths) {nqp.libpath(paths)})')($*LIBPATH);
289
0 commit comments