[compiler-rt][ASAN] Replace find_executable with shtuil.which in script
authorDavid Spickett <david.spickett@linaro.org>
Mon, 17 Apr 2023 13:36:03 +0000 (13:36 +0000)
committerDavid Spickett <david.spickett@linaro.org>
Wed, 19 Apr 2023 09:18:47 +0000 (09:18 +0000)
commit21ca46c1aa51253856fcff30c0dbc7b0b40d1a1c
treed4018304494a2eb7fe206c799054d8cdb1321500
parent6db6ab4815a44bfcaabfcdd84a0ff458394f6f52
[compiler-rt][ASAN] Replace find_executable with shtuil.which in script

distutils is deprecated and shutil.which is the suggested
replacement for this function.

https://peps.python.org/pep-0632/#migration-advice
https://docs.python.org/3/library/shutil.html#shutil.which

which was added in 3.3 (https://docs.python.org/3/library/shutil.html#shutil.which)
and LLVM requires at least 3.6 (https://llvm.org/docs/GettingStarted.html#software).

Reviewed By: delcypher, vitalybuka

Differential Revision: https://reviews.llvm.org/D148528
compiler-rt/lib/asan/scripts/asan_symbolize.py