Skip to content

Commit

Permalink
Merge pull request ClangBuiltLinux#239 from nathanchance/fix-new-ruff…
Browse files Browse the repository at this point in the history
…-pth207

tc_build: llvm: Switch to Path.glob()

Signed-off-by: onettboots <[email protected]>
  • Loading branch information
nathanchance authored and onettboots committed Oct 25, 2024
1 parent 8f99cb2 commit 24640c2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tc_build/llvm.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#!/usr/bin/env python3

import contextlib
import glob
import os
from pathlib import Path
import platform
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 24640c2

Please sign in to comment.