guix-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v4 1/9] gnu: cross: Use CROSS_*_INCLUDE_PATH for system heade


From: Andy Wingo
Subject: Re: [PATCH v4 1/9] gnu: cross: Use CROSS_*_INCLUDE_PATH for system headers.
Date: Mon, 25 Apr 2016 12:38:51 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux)

On Sun 24 Apr 2016 23:40, Jan Nieuwenhuizen <address@hidden> writes:

> +                    (setenv "CPP" (string-append gcc "/bin/cpp"))
> +                    (for-each (lambda (var)
> +                                (and-let* ((value (getenv var))
> +                                           (path (search-path-as-string->list
> +                                                  value))
> +                                           (native-path
                                               ^^

Bad indentation here; it should be indented like let*

> +                                            (list->search-path-as-string
> +                                             (remove cross? path) ":"))))
> +                                (let* ((path (search-path-as-string->list
> +                                              (getenv var)))

However given this, both "value" and "path" should succeed without
error...

> +                                       (native-path
> +                                        (and path
> +                                             (list->search-path-as-string
> +                                              (remove cross? path) ":"))))

And this is a repeat?  Perhaps you meant to replace the and-let* block,
or to remove this one?  I would lean towards not using and-let* fwiw :)

> +                                  (if native-path (setenv var native-path))))

For one-armed ifs, please use "when" or "unless".  Tx :)

Andy



reply via email to

[Prev in Thread] Current Thread [Next in Thread]