Skip to content

Instantly share code, notes, and snippets.

Created March 6, 2015 10:58
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 anonymous/786c6ff3d25623d9f997 to your computer and use it in GitHub Desktop.
Save anonymous/786c6ff3d25623d9f997 to your computer and use it in GitHub Desktop.
diff --git a/tools/build/create-moar-runner.pl b/tools/build/create-moar-runner.pl
index 9e9a4aa..f83d07d 100644
--- a/tools/build/create-moar-runner.pl
+++ b/tools/build/create-moar-runner.pl
@@ -5,9 +5,13 @@ use strict;
use warnings;
use 5.008;
use File::Spec;
+use Cwd qw(realpath);
my ($moar, $mbc, $install_to, $p6_mbc_path, @libpaths) = @ARGV;
-$p6_mbc_path = File::Spec->rel2abs($p6_mbc_path || '.');
+$p6_mbc_path = realpath(File::Spec->rel2abs($p6_mbc_path || '.'));
+$moar = realpath($moar);
+
+@libpaths = map { realpath($_) } @libpaths;
if ($^O eq 'MSWin32') {
$install_to .= '.bat';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment