diff options
author | Jan Nieuwenhuizen <janneke@gnu.org> | 2016-05-28 17:32:04 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2016-12-07 10:23:16 +0100 |
commit | cba36e6482a39d9b7e3a61fb2251664a86cb492e (patch) | |
tree | b73a831ef213b223aa306cbb9d66f455ebc854ba /guix/utils.scm | |
parent | cf0ef075c43437f183bc4cb390481e9c9b5a3399 (diff) |
gnu: cross-base: Add i686-w64-mingw32 target.
* guix/utils.scm (mingw-target?): New function.
* gnu/packages/cross-base.scm (cross-gcc-snippet): New procedure
(cross-gcc): Use it.
(cross-gcc-arguments, cross-gcc-patches, cross-gcc): Support MinGW.
(native-libc, cross-newlib?): New functions.
(cross-libc): Use cross-newlib? to support MinGW.
(%gcc-include-paths, %gcc-cross-include-paths): New variables.
Diffstat (limited to 'guix/utils.scm')
-rw-r--r-- | guix/utils.scm | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/guix/utils.scm b/guix/utils.scm index 65a2baa0a2..06f49daca8 100644 --- a/guix/utils.scm +++ b/guix/utils.scm @@ -70,6 +70,7 @@ %current-system %current-target-system package-name->name+version + target-mingw? version-compare version>? version>=? @@ -508,6 +509,10 @@ returned. Both parts must not contain any '@'." (idx (values (substring spec 0 idx) (substring spec (1+ idx)))))) +(define* (target-mingw? #:optional (target (%current-target-system))) + (and target + (string-suffix? "-mingw32" target))) + (define version-compare (let ((strverscmp (let ((sym (or (dynamic-func "strverscmp" (dynamic-link)) |