CChenX / gyp

Automatically exported from code.google.com/p/gyp
0 stars 0 forks source link

ninja generator (on windows) does not provide all the variables necessary for #host toolsets #464

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
The ninja generator on windows provides custom variables for windows 
toolchains, such as "lib.exe" for 'ar' 
(https://code.google.com/p/gyp/source/browse/trunk/pylib/gyp/generator/ninja.py#
1790). However, it's missing the same considerations for #host toolsets (when 
cross compiling).

Here is the offending line:

https://code.google.com/p/gyp/source/browse/trunk/pylib/gyp/generator/ninja.py#1
806

ar_host is set in only 1 place, and has no analogous 'lib.exe' special-casing.

When using ninja+toolsets on windows, you'll find this produces an error about 
'ar' not found or not executable. The workaround is to supply "AR_host" in the 
environment.

Original issue reported on code.google.com by dima...@google.com on 28 Oct 2014 at 10:59