Bug 1350036 - Clarify llvm-config detection error. r=froydnj draft
authorJ. Ryan Stinnett <jryans@gmail.com>
Tue, 16 May 2017 09:44:07 -0500
changeset 578788 09789da0001be6b05aa242a57ba5d394b34c310f
parent 578781 b9a4a6e2292e923684c2d25b78addaca23c6abd5
child 628837 c6bb20f53b2d92fec603abd4d8c9690155a3e5d2
push id59061
push userbmo:jryans@gmail.com
push dateTue, 16 May 2017 14:47:24 +0000
reviewersfroydnj
bugs1350036
milestone55.0a1
Bug 1350036 - Clarify llvm-config detection error. r=froydnj Reword the `llvm-config` detection error message to recommend setting the LLVM_CONFIG env var, like we do for the bootstrap path. This avoids exposing `clang` as well, so the compiler won't be changed. MozReview-Commit-ID: CVNJ2bX2POa
toolkit/moz.configure
--- a/toolkit/moz.configure
+++ b/toolkit/moz.configure
@@ -699,19 +699,21 @@ def stylo(stylo_enabled, bindgen_config_
         return None
     elif not bindgen_enabled:
         return namespace(
             enabled=bool(stylo_enabled)
         )
     elif not bindgen_config_paths:
         die(dedent('''\
         Could not find LLVM/Clang installation for compiling stylo build-time
-        bindgen.  Please put 'llvm-config' in your PATH, specify the
-        'LLVM_CONFIG' environment variable, or pass the '--with-libclang-path'
-        and '--with-clang-path' options to configure.'''))
+        bindgen.  Please specify the 'LLVM_CONFIG' environment variable
+        (recommended), pass the '--with-libclang-path' and '--with-clang-path'
+        options to configure, or put 'llvm-config' in your PATH.  Altering your
+        PATH may expose 'clang' as well, potentially altering your compiler,
+        which may not be what you intended.'''))
 
     return namespace(
         enabled=bool(stylo_enabled),
         libclang_path=bindgen_config_paths.libclang_path,
         clang_path=bindgen_config_paths.clang_path,
         bindgen_enabled=bool(bindgen_enabled),
     )