mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-17 09:10:22 +02:00
new function: canonicalize-path. use when autocompiling
* libguile/filesys.h: * libguile/filesys.c (scm_canonicalize_path): New function, canonicalize-path. * module/system/base/compile.scm (compiled-file-name): Canonicalize the filename so that compiling e.g. ../foo.scm doesn't compile to ~/.guile-ccache/1.9/../foo.scm.
This commit is contained in:
parent
ffca4c2203
commit
25b82b3485
3 changed files with 25 additions and 1 deletions
|
@ -131,7 +131,8 @@
|
|||
(else (car %load-compiled-extensions))))
|
||||
(and %compile-fallback-path
|
||||
(let ((f (string-append
|
||||
%compile-fallback-path "/" file (compiled-extension))))
|
||||
%compile-fallback-path "/" (canonicalize-path file)
|
||||
(compiled-extension))))
|
||||
(and (false-if-exception (ensure-writable-dir (dirname f)))
|
||||
f))))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue