From 24640c223d8da9202cd9cbb099e13307173a36f0 Mon Sep 17 00:00:00 2001 From: Nathan Chancellor Date: Mon, 7 Aug 2023 09:07:47 -0700 Subject: [PATCH] Merge pull request #239 from nathanchance/fix-new-ruff-pth207 tc_build: llvm: Switch to Path.glob() Signed-off-by: onettboots --- tc_build/llvm.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tc_build/llvm.py b/tc_build/llvm.py index c1a5e25d..4ea64472 100644 --- a/tc_build/llvm.py +++ b/tc_build/llvm.py @@ -1,7 +1,6 @@ #!/usr/bin/env python3 import contextlib -import glob import os from pathlib import Path import platform @@ -255,7 +254,7 @@ def configure(self): # Clear Linux needs a different target to find all of the C++ header files, otherwise # stage 2+ compiles will fail without this # We figure this out based on the existence of x86_64-generic-linux in the C++ headers path - if glob.glob('/usr/include/c++/*/x86_64-generic-linux'): + if list(Path('/usr/include/c++').glob('*/x86_64-generic-linux')): self.cmake_defines['LLVM_HOST_TRIPLE'] = 'x86_64-generic-linux' # By default, the Linux triples are for glibc, which might not work on