[vlc-devel] [PATCH] lua: build luac for the build, not the host

Rafaël Carré funman at videolan.org
Fri Feb 10 00:44:33 CET 2012


Le 2012-02-09 03:37, Rémi Denis-Courmont a écrit :
> On Thu, 09 Feb 2012 03:23:19 -0500, Rafaël Carré <funman at videolan.org>
> wrote:
>> Le 2012-02-09 02:44, Rémi Denis-Courmont a écrit :
>>> On Wed,  8 Feb 2012 19:32:24 -0500, Rafaël Carré <funman at videolan.org>
>>> wrote:
>>>> Assume gcc is the compiler
>>>>
>>>> Calling 'luac' without the .exe suffix works on Windows, just not in
>>>> cmd.exe
>>>> Tested in unix shell and Makefile
>>>
>>> Just install the lua compiler on the build machine.
>>>
>>> We don't have gcc in contribs (or, err tools), so why luac?
>>
>>
>> I think it's needed since 01ec2d6e8c9347a0
> 
> And I think contrib is not meant to, has no support for, and should target
> the build platform in any way.

That's not correct, contribs build:
* autopoint/gettextize shell scripts to be run on the build platform
* moc/uic/rcc executables for both target and build platform
* luac

This lua patch you wrote ensures we only load a specific .luac format.
Then we need a luac executable that compiles to that specific format.

This patch does just that.



More information about the vlc-devel mailing list