[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
- Re: rfc/rfh: i686-w64-mingw32 cross target, Jan Nieuwenhuizen, 2016/04/02
- Re: rfc/rfh: i686-w64-mingw32 cross target, Ludovic Courtès, 2016/04/07
- Re: rfc/rfh: i686-w64-mingw32 cross target, Jan Nieuwenhuizen, 2016/04/14
- Re: rfc/rfh: i686-w64-mingw32 cross target, Ludovic Courtès, 2016/04/19
- [PATCH v4 1/9] gnu: cross: Use CROSS_*_INCLUDE_PATH for system headers., Jan Nieuwenhuizen, 2016/04/25
- Re: [PATCH v4 1/9] gnu: cross: Use CROSS_*_INCLUDE_PATH for system headers.,
Andy Wingo <=
- Re: [PATCH v4 1/9] gnu: cross: Use CROSS_*_INCLUDE_PATH for system headers., Jan Nieuwenhuizen, 2016/04/25
- Re: [PATCH v4 1/9] gnu: cross: Use CROSS_*_INCLUDE_PATH for system headers., Andy Wingo, 2016/04/26
- Re: [PATCH v4 1/9] gnu: cross: Use CROSS_*_INCLUDE_PATH for system headers., Jan Nieuwenhuizen, 2016/04/26
- Re: [PATCH v4 1/9] gnu: cross: Use CROSS_*_INCLUDE_PATH for system headers., Jan Nieuwenhuizen, 2016/04/26
- Re: [PATCH v4 1/9] gnu: cross: Use CROSS_*_INCLUDE_PATH for system headers., Jan Nieuwenhuizen, 2016/04/25
- Re: [PATCH v4 1/9] gnu: cross: Use CROSS_*_INCLUDE_PATH for system headers., Andy Wingo, 2016/04/26