new function: canonicalize-path. use when autocompiling
[bpt/guile.git] / module / system / base / compile.scm
index 9f0ff2f..dfe8823 100644 (file)
           (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))))