(zilch lang ninja build): fix relative-to normalisation for empty paths
This commit is contained in:
parent
5b4bb8cd8a
commit
ca920c0ae3
1 changed files with 1 additions and 1 deletions
|
|
@ -120,7 +120,7 @@
|
||||||
;; to be a nixpkgs-style derivation, the same way `nix-shell` works.
|
;; to be a nixpkgs-style derivation, the same way `nix-shell` works.
|
||||||
(define (process-ninja-file file vfs environment relative-to)
|
(define (process-ninja-file file vfs environment relative-to)
|
||||||
(when (or (derivation? environment) (store-path? environment)) (set! environment (environment-for-derivation environment)))
|
(when (or (derivation? environment) (store-path? environment)) (set! environment (environment-for-derivation environment)))
|
||||||
(unless (string-suffix? "/" relative-to) (set! relative-to (string-append relative-to "/")))
|
(unless (or (string=? relative-to "") (string-suffix? "/" relative-to)) (set! relative-to (string-append relative-to "/")))
|
||||||
|
|
||||||
(define edges (mapping (make-default-comparator)))
|
(define edges (mapping (make-default-comparator)))
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue