Re: [PATCH] detect if host cc accepts -malign-double

  • From: Mike Pall <mike-1410@xxxxxxxxxx>
  • To: luajit@xxxxxxxxxxxxx
  • Date: Tue, 7 Oct 2014 16:05:01 +0200

Tony Theodore wrote:
> When cross-compiling for Windows on OSX, `gcc` is an alias for `clang` and 
> doesn’t accept the `-malign-double` argument. The patch below fixes this.

This flag is required for cross-compiling to Win32. Otherwise the
generated VM may not work properly on the target.

In other words: if the cross-compiler doesn't support it, then
the build needs to abort, anyway.

--Mike

Other related posts:

  • » Re: [PATCH] detect if host cc accepts -malign-double - Mike Pall