diff options
| author | Ludovic Courtès <ludo@gnu.org> | 2019-04-19 15:18:20 +0200 |
|---|---|---|
| committer | Ludovic Courtès <ludo@gnu.org> | 2019-04-19 17:46:40 +0200 |
| commit | ea261dea0c581771b4cf297e983f7addc6807051 (patch) | |
| tree | 022306c8d977f2ad5e0002d5f1a7b7a67349fb19 /doc | |
| parent | 296da6e624633f4e049244e72647ceff535a6cc0 (diff) | |
guix build: Accept multiple '-s' options.
* guix/scripts/build.scm (%default-options): Remove 'system'.
(%options) <--system>: Keep previous occurrences of 'system in RESULT.
(options->derivations)[system]: Remove.
[systems, things-to-build]: New variables.
[compute-derivation]: New procedure.
Iterate on all of SYSTEMS to compute the derivations of THINGS-TO-BUILD.
* tests/guix-build.sh: Add test for one and multiple '-s' flags.
* doc/guix.texi (Additional Build Options): Document this behavior.
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/guix.texi | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/doc/guix.texi b/doc/guix.texi index 6b713aaf9c8..8c7522f286b 100644 --- a/doc/guix.texi +++ b/doc/guix.texi | |||
| @@ -8030,7 +8030,9 @@ The following derivations will be built: | |||
| 8030 | @item --system=@var{system} | 8030 | @item --system=@var{system} |
| 8031 | @itemx -s @var{system} | 8031 | @itemx -s @var{system} |
| 8032 | Attempt to build for @var{system}---e.g., @code{i686-linux}---instead of | 8032 | Attempt to build for @var{system}---e.g., @code{i686-linux}---instead of |
| 8033 | the system type of the build host. | 8033 | the system type of the build host. The @command{guix build} command allows |
| 8034 | you to repeat this option several times, in which case it builds for all the | ||
| 8035 | specified systems; other commands ignore extraneous @option{-s} options. | ||
| 8034 | 8036 | ||
| 8035 | @quotation Note | 8037 | @quotation Note |
| 8036 | The @code{--system} flag is for @emph{native} compilation and must not | 8038 | The @code{--system} flag is for @emph{native} compilation and must not |
