diff options
author | Cristian Maureira-Fredes <Cristian.Maureira-Fredes@qt.io> | 2020-12-29 18:34:32 +0100 |
---|---|---|
committer | Cristian Maureira-Fredes <Cristian.Maureira-Fredes@qt.io> | 2021-01-05 10:46:37 +0100 |
commit | b3dd5989db62cbb18bb9eff2ff8bad29f0ccb5a3 (patch) | |
tree | a4e818009f66af80bb3a4e01f40e9c525e56ab61 /build_scripts | |
parent | aeed3d2ec76a74ba98441338c235ecc02281e347 (diff) |
build_scripts: remove unused code
The function was removed in 609b1cd7ab8514354c93249e8a295e5e907d8de9
because CMake is in charge of discovering the location via llvm-config.
This removes the code and raise a OSError if LLVM/CLANG_INSTALL_DIR
is not defined.
Pick-to: 6.0
Change-Id: Ifb74b9eb327518dbc7b114e6868b773f304a577e
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'build_scripts')
-rw-r--r-- | build_scripts/utils.py | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/build_scripts/utils.py b/build_scripts/utils.py index 8919cff75..767ed46af 100644 --- a/build_scripts/utils.py +++ b/build_scripts/utils.py @@ -676,14 +676,7 @@ def detect_clang(): source = 'CLANG_INSTALL_DIR' clang_dir = os.environ.get(source, None) if not clang_dir: - source = find_llvm_config() - try: - if source is not None: - output = run_process_output([source, '--prefix']) - if output: - clang_dir = output[0] - except OSError: - pass + raise OSError("clang not found") if clang_dir: arch = '64' if sys.maxsize > 2 ** 31 - 1 else '32' clang_dir = clang_dir.replace('_ARCH_', arch) |