cmp: builder: warn ASDF that it does the wrong thing.

It shouldn't call compute-init-name.
This commit is contained in:
Daniel Kochmanski 2017-07-21 18:11:55 +02:00
parent b4a83d2955
commit 5836dc8bec

View file

@ -432,6 +432,13 @@ filesystem or in the database of ASDF modules."
(setf wrap-name (init-function-name (pathname-name output-name) :kind target :prefix "wrap_")))
(unless main-name
(setf main-name (compute-init-name output-name :kind target :prefix "main_")))
;; fixup for ASDF
(when (equal init-name wrap-name)
(let ((new-name (init-function-name (pathname-name output-name) :kind target :prefix "wrap_")))
(cmpwarn "It seems that you put result of the internal function `compute-init-name' as `init-name' key parameter. Fixing to ~s." new-name)
(setf wrap-name new-name)))
;;
;; The epilogue-code can be either a string made of C code, or a
;; lisp form. In the latter case we add some additional C code to