Skip to content

Instantly share code, notes, and snippets.

@timo
Created October 1, 2014 18:07
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/fa6d113e897c9f1e1905 to your computer and use it in GitHub Desktop.
Save timo/fa6d113e897c9f1e1905 to your computer and use it in GitHub Desktop.
diff --git a/Configure.pl b/Configure.pl
index ceebfcc..58be082 100644
--- a/Configure.pl
+++ b/Configure.pl
@@ -32,7 +32,7 @@ GetOptions(\%args, qw(
os=s shell=s toolchain=s compiler=s
cc=s ld=s make=s has-sha has-libuv
static use-readline has-libtommath has-libatomic_ops
- build=s host=s big-endian enable-jit lua=s
+ build=s host=s big-endian disable-jit enable-jit lua=s
prefix=s make-install asan),
'no-optimize|nooptimize' => sub { $args{optimize} = 0 },
'no-debug|nodebug' => sub { $args{debug} = 0 }
@@ -195,6 +195,10 @@ else {
}
if ($args{'enable-jit'}) {
+ print("The --enable-jit flag is now obsolete, as --enable-jit is the default. You can pass --disabl
+}
+
+if (!$args{'disable-jit'}) {
if ($Config{archname} =~ m/^x86_64|^amd64|^darwin(-thread)?(-multi)?-2level/) {
$config{jit} = '$(JIT_POSIX_X64)';
} elsif ($Config{archname} =~ /^MSWin32-x64/) {
Copy link

ghost commented Oct 1, 2014

For --no-jit, you can use jit! which gives --no-jit and --nojit (and --jit), so something like

-    build=s host=s big-endian enable-jit lua=s
+    build=s host=s big-endian jit! enable-jit lua=s

+$args{'jit'}               //= 1;

-if ($args{'enable-jit'}) {
+if ($args{'jit'}) {
     if ($Config{archname} =~ m/^x86_64|^amd64|^darwin(-thread)?(-multi)?-2level/) {
         $config{jit} = '$(JIT_POSIX_X64)';
     } elsif ($Config{archname} =~ /^MSWin32-x64/) {

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment