You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
1.2 KiB

  1. diff -urN a/configure.py b/configure.py
  2. --- a/configure.py 2019-09-05 00:36:21.000000000 +0900
  3. +++ b/configure.py 2019-09-27 11:49:55.445800884 +0900
  4. @@ -1276,6 +1276,23 @@
  5. options.build_v8_with_gn = FetchDeps(v8_path)
  6. o['variables']['build_v8_with_gn'] = b(options.build_v8_with_gn)
  7. +def configure_v8_deprecated(o):
  8. + target_arch = options.dest_cpu
  9. + if target_arch == 'x86':
  10. + target_arch = 'ia32'
  11. + if target_arch == 'x86_64':
  12. + target_arch = 'x64'
  13. +
  14. + if target_arch in ('mips', 'mips64'):
  15. + o['variables']['v8_use_snapshot'] = 'false'
  16. + elif target_arch in ('mipsel', 'mips64el'):
  17. + o['variables']['v8_enable_embedded_builtins'] = 0
  18. + elif target_arch == 'x64':
  19. + if options.with_intl not in (None, 'none'):
  20. + o['variables']['v8_enable_embedded_builtins'] = 0
  21. + elif target_arch == 'ia32':
  22. + if options.with_intl in (None, 'none'):
  23. + o['variables']['v8_use_snapshot'] = 'false'
  24. def configure_openssl(o):
  25. variables = o['variables']
  26. @@ -1713,6 +1732,7 @@
  27. configure_intl(output)
  28. configure_static(output)
  29. configure_inspector(output)
  30. +configure_v8_deprecated(output)
  31. # variables should be a root level element,
  32. # move everything else to target_defaults