unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Maxime Devos <maximedevos@telenet.be>
To: Liliana Marie Prikler <liliana.prikler@gmail.com>,
	Guix-devel <guix-devel@gnu.org>
Cc: Hartmut Goebel <h.goebel@crazy-compilers.com>
Subject: Re: antioxidant update: librsvg builds, and other things (core-updates)
Date: Sun, 28 Aug 2022 11:38:53 +0200	[thread overview]
Message-ID: <666cd6a0-d740-5670-699c-cb27ef99a694@telenet.be> (raw)
In-Reply-To: <24db3351ff88ecc767f31def2676708a18e15523.camel@gmail.com>


[-- Attachment #1.1.1.1: Type: text/plain, Size: 1859 bytes --]


On 28-08-2022 00:04, Liliana Marie Prikler wrote:
> Am Samstag, dem 27.08.2022 um 22:01 +0200 schrieb Maxime Devos:
>> On 27-08-2022 21:54, Liliana Marie Prikler wrote:
>>>> * Due to how regularised the Rust build system is, it's feasible
>>>> to compile tests even when cross-compiling (*), so cross-compiled
>>>> could run the cross-compiled tests on the system they are
>>>> cross-compiling for after the cross-compilation to verify their
>>>> cross-compiled software.
>>> How exactly does this work without emulating the system in
>>> question?
>> It works by not performing any work except compilation -- Guix'
>> responsibility would only be to cross-compile and install the tests
>> (_not_  running them), you are supposed to install the cross-compiled
>> thing (including tests) on the target system and run the tests on the
>> target system.
> This doesn't strike me as a rust-specific setup, though.  In principle,
> you should be able to do the same with a C/C++ program, but most of the
> time "make check" implies both building and running the tests.

The difference between Rust and many C/C++ setups here, is that with 
Rust it's trivial to only compile and install the tests without running 
them (currently, antioxidant-build-system compiles+installs and runs the 
tests in separate phases), whereas in case of C/C++, there usually isn't 
a convenient '"make install-the-tests-without-running-them" target, 
rather building and running the tests is combined in a single "make 
check" as you note.

As I've written previously:

> Due to how regularised the Rust build system is, it's feasible
> to compile tests even when cross-compiling (*)
but that does not appear to be the case for C/C++, as you've noted with 
your comments about "make check" both building and running the tests.

Greetings,
Maxime.

[-- Attachment #1.1.1.2: Type: text/html, Size: 3189 bytes --]

[-- Attachment #1.1.2: OpenPGP public key --]
[-- Type: application/pgp-keys, Size: 929 bytes --]

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 236 bytes --]

  reply	other threads:[~2022-08-28  9:56 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-08-27 10:54 antioxidant update: librsvg builds, and other things (core-updates) Maxime Devos
2022-08-27 19:54 ` Liliana Marie Prikler
2022-08-27 20:01   ` Maxime Devos
2022-08-27 22:04     ` Liliana Marie Prikler
2022-08-28  9:38       ` Maxime Devos [this message]
2022-09-01 10:40 ` Hartmut Goebel

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

  List information: https://guix.gnu.org/

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

  git send-email \
    --in-reply-to=666cd6a0-d740-5670-699c-cb27ef99a694@telenet.be \
    --to=maximedevos@telenet.be \
    --cc=guix-devel@gnu.org \
    --cc=h.goebel@crazy-compilers.com \
    --cc=liliana.prikler@gmail.com \
    /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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).