[PATCH 1 of 2] auto/type/sizeof: rework autotest to be cross-compilation friendly
Maxim Dounin
mdounin at mdounin.ru
Fri May 9 03:49:19 UTC 2014
Hello!
On Sun, May 04, 2014 at 08:08:29AM +0200, Samuel Martin wrote:
> # HG changeset patch
> # User Samuel Martin <s.martin49 at gmail.com>
> # Date 1398374852 -7200
> # Thu Apr 24 23:27:32 2014 +0200
> # Node ID f0f3f5208b12c6afbbdfb55b32c968ebd7206ad5
> # Parent b9553b4b8e670a0231afc0484f23953c0d8b5f22
> auto/type/sizeof: rework autotest to be cross-compilation friendly
>
> Rework the sizeof test to do the checks at compile time instead of at
> runtime. This way, it does not break when cross-compiling for a
> different CPU architecture.
No.
Apart from various problems with the patch like breaking
./configure output, this approach (parsing error messages of a
compiler) is not portable. E.g., it won't work with MSVC.
--
Maxim Dounin
http://nginx.org/
More information about the nginx-devel
mailing list