fix broken translation of env variables into executable paths
svn: r2648
This commit is contained in:
parent
584624a02d
commit
f1f301c966
|
@ -28,9 +28,10 @@
|
|||
(make-parameter
|
||||
(or (let ([p (or (getenv "MZSCHEME_DYNEXT_COMPILER")
|
||||
(getenv "CC"))])
|
||||
(if (and p (absolute-path? p))
|
||||
(find-executable-path p #f)
|
||||
p))
|
||||
(and p
|
||||
(if (absolute-path? p)
|
||||
(string->path p)
|
||||
(find-executable-path p #f))))
|
||||
(case (system-type)
|
||||
[(unix macosx) (get-unix-compile)]
|
||||
[(windows) (get-windows-compile)]
|
||||
|
|
|
@ -42,9 +42,10 @@
|
|||
(define current-extension-linker
|
||||
(make-parameter
|
||||
(or (let ([p (getenv "MZSCHEME_DYNEXT_LINKER")])
|
||||
(if (and p (absolute-path? p))
|
||||
(find-executable-path p #f)
|
||||
p))
|
||||
(and p
|
||||
(if (absolute-path? p)
|
||||
(string->path p)
|
||||
(find-executable-path p #f))))
|
||||
(case (system-type)
|
||||
[(unix macosx) (get-unix-linker)]
|
||||
[(windows) (get-windows-linker)]
|
||||
|
|
Loading…
Reference in New Issue
Block a user