[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: running tests when cross-compiling
From: |
Vadim Zeitlin |
Subject: |
Re: running tests when cross-compiling |
Date: |
Thu, 12 Feb 2009 16:52:00 +0000 (UTC) |
User-agent: |
Loom/3.14 (http://gmane.org/) |
Erik de Castro Lopo <mle+tools <at> mega-nerd.com> writes:
> Vadim Zeitlin wrote:
>
> > Configure is smart enough to not try to run the tests when cross-compiling
>
> It does? I thought these tests just failed.
According to my experience and
http://www.gnu.org/software/autoconf/manual/html_node/Runtime.html#Runtime both,
AC_RUN_IFELSE() as well as AC_TRY_RUN() it replaces fail only if
action-if-cross-compiling is not specified. If it is specified, it is used but
usually this action is just a fallback and the test is still not ran.
> I cross compile from i686 Linux to Mingw all the time and my (quite
> comprehensive) test suite runs quiote happily under Wine.
I don't think we're speaking about the same thing as it seems extremely
unlikely that you're running your test suite from configure. So, to clarify: I
am speaking about tests done in configure, not about any other tests built
during the program build process.
> > Hence my question: is it possible to somehow indicate to configure that it
> > can run the binaries even when it's (formally) cross-compiling?
>
> I think you need to investigate why its failing more carefully.
They're not failing, they simply are not ran by configure.
Thanks,
VZ