all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Ricardo Wurmus <rekado@elephly.net>
To: "Ludovic Courtès" <ludo@gnu.org>
Cc: 27076@debbugs.gnu.org
Subject: bug#27076: [PATCH] build-system/cmake: Add support for cross compilation.
Date: Tue, 30 May 2017 16:10:17 +0200	[thread overview]
Message-ID: <87bmqa4era.fsf@elephly.net> (raw)
In-Reply-To: <874lw4rby8.fsf@gnu.org>


Ludovic Courtès <ludo@gnu.org> writes:

> Hi,
>
> Ricardo Wurmus <rekado@elephly.net> skribis:
>
>> * guix/build-system/gnu.scm: Export standard-cross-packages.
>> * guix/build-system/cmake.scm (cmake-cross-build): New procedure.
>> (lower): Add support for cross-builds.
>> * guix/build/cmake-build-system.scm (configure): Handle "target" argument.
>
> Awesome!  This also fixes <https://bugs.gnu.org/26897>.

I’ll update the commit message to mention it.

>> +                  ;;  Cross-build
>> +                  ,@(if target
>> +                        (list (string-append "-DCMAKE_C_COMPILER="
>> +                                             target "-gcc")
>> +                              ;; XXX: Use "Windows" when this is a cross-build
>> +                              ;; for Windows.
>> +                              "-DCMAKE_SYSTEM_NAME=Linux")
>> +                        '())
>
> Should we check whether TARGET contains “mingw”, “linux”, or “gnu” and
> adjust that accordingly?

Yes, sounds good.

> Otherwise LGTM!

Okay, I’ll push it to core-updates, because this results in a rebuild of
all packages using the cmake-build-system.

-- 
Ricardo

GPG: BCA6 89B6 3655 3801 C3C6  2150 197A 5888 235F ACAC
https://elephly.net

  reply	other threads:[~2017-05-30 14:11 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-05-25 21:05 bug#27076: Cross-build support for cmake-build-system Ricardo Wurmus
2017-05-25 21:16 ` bug#27076: [PATCH] build-system/cmake: Add support for cross compilation Ricardo Wurmus
2017-05-25 21:26 ` Ricardo Wurmus
2017-05-26  8:21   ` Ricardo Wurmus
2017-05-28 19:57   ` Ludovic Courtès
2017-05-30 14:10     ` Ricardo Wurmus [this message]
2017-05-30 21:50       ` Ricardo Wurmus

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87bmqa4era.fsf@elephly.net \
    --to=rekado@elephly.net \
    --cc=27076@debbugs.gnu.org \
    --cc=ludo@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.