File tree 1 file changed +11
-1
lines changed
1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -68,6 +68,7 @@ class Configure
68
68
@llvm_shared_objs = nil
69
69
@llvm_cxxflags = ""
70
70
@llvm_ldflags = ""
71
+ @llvm_mcjit = false
71
72
72
73
# System settings
73
74
@libc = nil
@@ -349,6 +350,10 @@ class Configure
349
350
@llvm_shared = true
350
351
end
351
352
353
+ o . on "--llvm-mcjit" , "Use LLVM with MCJIT" do
354
+ @llvm_mcjit = true
355
+ end
356
+
352
357
o . doc "\n System settings"
353
358
354
359
o . on "--with-include-dir" , "DIR" , "Add DIR to the default include search paths" do |dir |
@@ -612,6 +617,11 @@ class Configure
612
617
setup_llvm_shared
613
618
end
614
619
620
+ # Old JIT API is no longer available as of LLVM 3.6
621
+ if @llvm_api_version >= 306
622
+ @llvm_mcjit = true
623
+ end
624
+
615
625
return true
616
626
end
617
627
else
@@ -1585,7 +1595,7 @@ int main() { return tgetnum(""); }
1585
1595
#define RBX_LDSHAREDXX "#{ @ldsharedxx } "
1586
1596
#define RBX_SIZEOF_LONG #{ sizeof ( "long" ) }
1587
1597
#define RBX_LLVM_API_VER #{ @llvm_api_version }
1588
- #define RBX_LLVM_USE_MCJIT #{ @llvm_api_version >= 306 }
1598
+ #define RBX_LLVM_USE_MCJIT #{ @llvm_mcjit }
1589
1599
#define RBX_LIBC "#{ @libc } "
1590
1600
#define RBX_HAVE_LCHMOD #{ @have_lchmod }
1591
1601
#define RBX_HAVE_LCHOWN #{ @have_lchown }
You can’t perform that action at this time.
0 commit comments