aboutsummaryrefslogtreecommitdiff
path: root/src/lisp
diff options
context:
space:
mode:
authordos-reis <gdr@axiomatics.org>2014-11-16 20:32:55 +0000
committerdos-reis <gdr@axiomatics.org>2014-11-16 20:32:55 +0000
commit452696064e43c23f2a44edcded311f3d7b466d7e (patch)
tree375ea3690ca7ea469675313cae728a670dd26b09 /src/lisp
parent564aff97f80abac84be64552f5238903cb126c33 (diff)
downloadopen-axiom-452696064e43c23f2a44edcded311f3d7b466d7e.tar.gz
Check for LLVM framework
Diffstat (limited to 'src/lisp')
-rw-r--r--src/lisp/Makefile.in2
-rw-r--r--src/lisp/core.lisp.in5
2 files changed, 7 insertions, 0 deletions
diff --git a/src/lisp/Makefile.in b/src/lisp/Makefile.in
index de4f1f60..3602fe53 100644
--- a/src/lisp/Makefile.in
+++ b/src/lisp/Makefile.in
@@ -131,6 +131,7 @@ $(oa_target_lispdir)/linkset: $(oa_target_lispdir)/core.$(LNKEXT)
oa_optimize_options = @oa_optimize_options@
oa_delay_ffi = @oa_delay_ffi@
+oa_use_llvm = @oa_use_llvm@
oa_editor = @oa_editor@
@@ -161,6 +162,7 @@ edit = sed \
-e 's|@oa_standard_linking[@]|$(oa_standard_linking)|g' \
-e 's|@oa_enable_profiling[@]|$(oa_enable_lisp_profiling)|g' \
-e 's|@oa_delay_ffi[@]|$(oa_delay_ffi)|g' \
+ -e 's|@oa_use_llvm[@]|$(oa_use_llvm)|g' \
-e 's|@void_type[@]|$(void_type)|g' \
-e 's|@char_type[@]|$(char_type)|g' \
-e 's|@int_type[@]|$(int_type)|g' \
diff --git a/src/lisp/core.lisp.in b/src/lisp/core.lisp.in
index 81fd0f2f..025791f2 100644
--- a/src/lisp/core.lisp.in
+++ b/src/lisp/core.lisp.in
@@ -180,6 +180,7 @@
"$faslType"
"$delayedFFI"
+ "$useLLVM"
"$effectiveFaslType"
"$NativeModuleExt"
"$systemInstallationDirectory"
@@ -437,6 +438,10 @@
(defconstant |$delayedFFI|
(eq '@oa_delay_ffi@ 'yes))
+;; True if the host has usable framework
+(defconstant |$useLLVM|
+ (eq '@oa_use_llvm@ 'yes))
+
;; The top level read-eval-print loop function of the base
;; Lisp system we are using. This is a very brittle way
;; of achieving something conceptually simple.