Skip to content

Commit

Permalink
Replace use of distutils, which has been deprecated.
Browse files Browse the repository at this point in the history
  • Loading branch information
dtarditi committed Sep 15, 2024
1 parent 7f11124 commit a3ac5cd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion llvm/utils/update_cc_test_checks.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
import os
import re
import shlex
import shutil
import subprocess
import sys
import tempfile
Expand Down Expand Up @@ -166,7 +167,7 @@ def config():
common.warn('Could not determine clang builtins directory, some tests '
'might not update correctly.')

if not distutils.spawn.find_executable(args.opt):
if not shutil.which(args.opt):
# Many uses of this tool will not need an opt binary, because it's only
# needed for updating a test that runs clang | opt | FileCheck. So we
# defer this error message until we find that opt is actually needed.
Expand Down

0 comments on commit a3ac5cd

Please sign in to comment.