mirror of
https://gitlab.com/eql/lqml.git
synced 2025-12-06 02:30:38 -08:00
cross-compiling: add option to create *.fasb files (android only)
This commit is contained in:
parent
6528022b70
commit
e8c3aa356f
1 changed files with 14 additions and 6 deletions
|
|
@ -37,16 +37,19 @@
|
|||
|
||||
(ext:install-bytecodes-compiler)
|
||||
|
||||
(when *ql-libs*
|
||||
(when (or *ql-libs*
|
||||
(eql :fasl *build-type*)) ; load Quicklisp for finding systems
|
||||
(let ((home (user-homedir-pathname)))
|
||||
#+ios
|
||||
(setf home (make-pathname :directory
|
||||
(remove "Library" (pathname-directory home)
|
||||
:test 'string=)))
|
||||
(let ((quicklisp-init (merge-pathnames "quicklisp/setup.lisp" home)))
|
||||
(when (probe-file quicklisp-init)
|
||||
(load quicklisp-init))))
|
||||
(load *ql-libs*)) ; eventual, not yet installed dependencies
|
||||
(if (probe-file quicklisp-init)
|
||||
(load quicklisp-init)
|
||||
(require :ecl-quicklisp))))
|
||||
(when *ql-libs*
|
||||
(load *ql-libs*))) ; eventual, not yet installed dependencies
|
||||
|
||||
(asdf:load-system *asdf-system*)
|
||||
|
||||
|
|
@ -80,8 +83,13 @@
|
|||
|
||||
(in-package :cl-user)
|
||||
|
||||
(defun c:build-fasl (file &rest _)
|
||||
;; do nothing (not needed when cross-compiling)
|
||||
(defvar *build-fasl-orig* (symbol-function 'c:build-fasl))
|
||||
|
||||
(defun c:build-fasl (file &rest args)
|
||||
(when (eql :fasl *build-type*)
|
||||
#+android
|
||||
(setf c::*ld-libs* "") ; prevent link error
|
||||
(apply *build-fasl-orig* file args))
|
||||
file)
|
||||
|
||||
;;; --- HACK end ---
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue