Don't download clang if --clang-prefix is set (#453)

This commit is contained in:
Anthony Cowley 2018-02-14 03:03:57 -05:00 committed by Fangrui Song
parent 3d3b5dfeb3
commit d678322c39

View File

@ -212,6 +212,7 @@ def configure(ctx):
print('--use-system-clang is deprecated. Please specify --llvm-config, e.g. /usr/bin/llvm-config llvm-config-6.0')
# Do not use bundled clang+llvm
if ctx.options.llvm_config is not None or ctx.options.clang_prefix is not None:
if ctx.options.llvm_config is not None:
# Ask llvm-config for cflags and ldflags
ctx.find_program(ctx.options.llvm_config, msg='checking for llvm-config', var='LLVM_CONFIG', mandatory=False)