X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2Fcode%2Fsource-location.lisp;h=7eb411bfe6f8cad09a74bcc8e6487d20d3ad4864;hb=a160917364f85b38dc0826a5e3dcef87e3c4c62c;hp=be5d1fdedf5c4a487eb7c1618cf4b90785d04958;hpb=9d572e5dec980b0a9572c5a888986b4497e92a5c;p=sbcl.git diff --git a/src/code/source-location.lisp b/src/code/source-location.lisp index be5d1fd..7eb411b 100644 --- a/src/code/source-location.lisp +++ b/src/code/source-location.lisp @@ -36,11 +36,13 @@ #+sb-xc-host (let ((src (position "src" dir :test #'string= :from-end t))) - (if src - (format nil "SYS:~{~:@(~A~);~}~:@(~A~).LISP" - (subseq dir src) (pathname-name untruename)) - ;; FIXME: just output/stuff-groveled-from-headers.lisp - (namestring untruename))) + (cond + (src (format nil "SYS:~{~:@(~A~);~}~:@(~A~).LISP" + (subseq dir src) (pathname-name untruename))) + (t (aver (string-equal (car (last dir)) "output")) + (aver (string-equal (pathname-name untruename) "stuff-groveled-from-headers")) + (aver (string-equal (pathname-type untruename) "lisp")) + "SYS:OUTPUT;STUFF-GROVELED-FROM-HEADERS.LISP"))) #-sb-xc-host (if (and dir (eq (first dir) :absolute)) (namestring untruename)