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

--HG--
extra : rebase_source : fedfb95e105f88fec08689ae3c69a841f3b52173
This commit is contained in:
J. Ryan Stinnett 2017-05-16 09:44:07 -05:00
parent a60ae17bc9
commit ee8925e1ee

View File

@ -704,9 +704,11 @@ def stylo(stylo_enabled, bindgen_config_paths, bindgen_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),