llvmversyon.patch 1.6 KB

12345678910111213141516171819202122232425262728293031323334
  1. diff -Nuar a/toolkit/moz.configure b/toolkit/moz.configure
  2. --- a/toolkit/moz.configure 2017-11-16 13:38:11.571875852 +0300
  3. +++ b/toolkit/moz.configure 2017-11-16 13:35:29.679887533 +0300
  4. @@ -618,7 +618,7 @@
  5. @imports('os')
  6. @imports('subprocess')
  7. def llvm_config_paths(host):
  8. - llvm_supported_versions = ['6.0', '5.0', '4.0', '3.9']
  9. + llvm_supported_versions = ['6.0', '5.0', '4.0', '3.9', '3.8']
  10. llvm_config_progs = []
  11. for version in llvm_supported_versions:
  12. llvm_config_progs += [
  13. @@ -662,9 +662,9 @@
  14. with only_when(building_stylo_bindgen):
  15. option('--with-libclang-path', nargs=1,
  16. - help='Absolute path to a directory containing Clang/LLVM libraries for Stylo (version 3.9.x or above)')
  17. + help='Absolute path to a directory containing Clang/LLVM libraries for Stylo (version 3.8.x or above)')
  18. option('--with-clang-path', nargs=1,
  19. - help='Absolute path to a Clang binary for Stylo bindgen (version 3.9.x or above)')
  20. + help='Absolute path to a Clang binary for Stylo bindgen (version 3.8.x or above)')
  21. def invoke_llvm_config(llvm_config, *options):
  22. '''Invoke llvm_config with the given options and return the first line of
  23. @@ -675,7 +675,7 @@
  24. @imports(_from='textwrap', _import='dedent')
  25. def check_minimum_llvm_config_version(llvm_config):
  26. version = Version(invoke_llvm_config(llvm_config, '--version'))
  27. - min_version = Version('3.9.0')
  28. + min_version = Version('3.8.0')
  29. if version < min_version:
  30. die(dedent('''\
  31. llvm installation {} is incompatible with Stylo bindgen.