Bug 1363686 - Prefer llvm-config aliases for 4.0 on Debian and FreeBSD. r?rillian draft
authorJan Beich <jbeich@FreeBSD.org>
Sat, 29 Apr 2017 17:54:21 +0000
changeset 575369 c559b894f915bc18cfd6ebd341acd765d70b1648
parent 575366 3dbe92e905712c8c4375494f43726f32819ac00e
child 575370 97c0a3d870f2e1774f8c03cfb830572603c829d5
push id58047
push userbmo:jbeich@FreeBSD.org
push dateWed, 10 May 2017 11:27:53 +0000
reviewersrillian
bugs1363686
milestone55.0a1
Bug 1363686 - Prefer llvm-config aliases for 4.0 on Debian and FreeBSD. r?rillian MozReview-Commit-ID: 8Fs0Nhj8P8M
toolkit/moz.configure
--- a/toolkit/moz.configure
+++ b/toolkit/moz.configure
@@ -593,17 +593,21 @@ option('--enable-stylo', env='STYLO_ENAB
             'This requires either building servo within Gecko\'s cargo phase '
             'or passing --with-servo')
 
 # We support setting up the appropriate options for Stylo's build-time
 # bindings generation via setting LLVM_CONFIG or by providing explicit
 # configure options.  The Windows installer of LLVM/Clang doesn't provide
 # llvm-config, so we need both methods to support all of our tier-1
 # platforms.
-llvm_config = check_prog('LLVM_CONFIG', ('llvm-config-3.9', 'llvm-config39', 'llvm-config',),
+llvm_config = check_prog('LLVM_CONFIG', ('llvm-config-4.0',
+                                         'llvm-config40',
+                                         'llvm-config-3.9',
+                                         'llvm-config39',
+                                         'llvm-config',),
                          what='llvm-config', allow_missing=True)
 
 option('--disable-stylo-build-bindgen',
        help='Enable build-time bindgen for Stylo')
 
 option('--with-libclang-path', nargs=1,
        help='Absolute path to Clang/LLVM libraries for Stylo (version 3.9.x')
 option('--with-clang-path', nargs=1,