[waffle] [PATCH v2 2/4] waffle: add support for building Waffle using NaCl toolchain

Chad Versace chad.versace at intel.com
Wed Dec 31 10:14:10 PST 2014


On 12/28/2014 11:11 PM, Tapani Pälli wrote:
> 
> 
> On 12/23/2014 12:28 AM, Chad Versace wrote:
>> On 12/21/2014 07:53 AM, Emil Velikov wrote:
>>> On 17 December 2014 at 10:17, Tapani Pälli <tapani.palli at intel.com> wrote:
>>>> Patch adds changes required to use NaCl compiler and libraries to
>>>> build Waffle. Build can be configured to use specific version of
>>>> the NaCl SDK, toolchain for the build needs to be selected with
>>>> cmake variable CMAKE_TOOLCHAIN_FILE.




>>>> +        if(NOT EXISTS ${CMAKE_TOOLCHAIN_FILE})
>>>> +            message(FATAL_ERROR "Toolchain for Nacl not found. This must be "
>>>> +                                "configured using CMAKE_TOOLCHAIN_FILE.")
>>>> +        endif()
>>>> +
>>> Don't think we need this check, but I'll leave it up-to Chad to be the
>>> final judge.
>>
>> Correct. CMake validates CMAKE_TOOLCHAIN_FILE very early during configuration.
>> If I understand correctly, CMake validates it before reading any of the
>> project's CMake files.
> 
> I added the check to make sure that nacl is only compiled with the toolchain files, otherwise the build will fail. For example if you leave it out from the example line in commit message, build fails and error message for user is a missing header.

Ok. That makes sense.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 884 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freedesktop.org/archives/waffle/attachments/20141231/7b0d02c6/attachment.sig>


More information about the waffle mailing list