haniceboy / gyp

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

ninja generator fails to parse v8 gyp files #278

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Check out v8 (standalone, not from within chrome), edit build/gyp_v8 to not 
pass --generator-output to gyp, execute the script.

This is the output:

Updating projects from gyp files...
Traceback (most recent call last):
  File "build/gyp_v8", line 170, in <module>
    run_gyp(gyp_args)
  File "build/gyp_v8", line 112, in run_gyp
    rc = gyp.main(args)
  File "./build/gyp/pylib/gyp/__init__.py", line 480, in main
    generator.GenerateOutput(flat_list, targets, data, params)
  File "./build/gyp/pylib/gyp/generator/ninja.py", line 1332, in GenerateOutput
    config_name)
  File "./build/gyp/pylib/gyp/generator/ninja.py", line 1310, in GenerateOutputForConfig
    target = writer.WriteSpec(spec, config_name)
  File "./build/gyp/pylib/gyp/generator/ninja.py", line 301, in WriteSpec
    config = spec['configurations'][config_name]
KeyError: 'Release'

Original issue reported on code.google.com by jochen@chromium.org on 26 Jun 2012 at 9:16

GoogleCodeExporter commented 9 years ago
works for me on current v8 bleeding_edge:

hummer:bloody_v8 thakis$ mvim build/gyp_v8
hummer:bloody_v8 thakis$ build/gyp_v8  -f ninja
Updating projects from gyp files...

(works without editing gyp_v8 too, I think I made that work a while ago.)

Original comment by thakis@chromium.org on 17 Jun 2014 at 7:14