Changeset 15480


Ignore:
Timestamp:
11/03/20 07:40:42 (2 years ago)
Author:
Mark Evenson
Message:

New algorithim for COMPILE-FILE-PATHNAME
(Robert Munyer)

Fixes "Wrong file type returned by COMPILE-FILE-PATHNAME" (ticket
#476) and "COMPILE-FILE, COMPILE-FILE-PATHNAME disagree on output dir"
(not yet ticketed).

<https://abcl.org/trac/ticket/476>
<https://mailman.common-lisp.net/pipermail/armedbear-devel/2020-November/004162.html>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/abcl/src/org/armedbear/lisp/compile-file-pathname.lisp

    r11391 r15480  
    3232(in-package #:system)
    3333
    34 ;; Adapted from SBCL.
    35 (defun cfp-output-file-default (input-file)
    36   (let* ((defaults (merge-pathnames input-file *default-pathname-defaults*))
    37    (retyped (make-pathname :type *compile-file-type* :defaults defaults)))
    38     retyped))
     34(defun compile-file-pathname (input-file &key output-file &allow-other-keys)
     35  (let ((defaults (make-pathname :type *compile-file-type*
     36                                 :defaults (merge-pathnames input-file))))
     37    (cond ((null output-file) defaults)
     38          (t (merge-pathnames output-file defaults)))))
    3939
    40 (defun compile-file-pathname (input-file
    41                               &key
    42                               (output-file (cfp-output-file-default
    43                                             input-file))
    44                               &allow-other-keys)
    45   (merge-pathnames output-file (merge-pathnames input-file) nil))
Note: See TracChangeset for help on using the changeset viewer.