mirror of
https://github.com/zebrajr/pytorch.git
synced 2025-12-07 12:21:27 +01:00
Summary: Fix the regex (requires enabling extglob) for two digit clang releases. While there, also fix it for three digit releases with the hope that I do not need to touch it for some time. Unfortunately, this regex requires extglob to be enabled in the shell. Pull Request resolved: https://github.com/pytorch/pytorch/pull/25409 Differential Revision: D17431786 Pulled By: bddppq fbshipit-source-id: a50b2ff525d9b6046deae9c8725c92d67119599a
10 lines
265 B
Bash
10 lines
265 B
Bash
#!/bin/bash
|
|
shopt -s extglob
|
|
|
|
ORIG_COMP=/opt/rocm/hcc/bin/clang-*_original
|
|
# note that the wrapping always names the compiler "clang-7.0_original"
|
|
if [ -e $ORIG_COMP ]; then
|
|
WRAPPED=/opt/rocm/hcc/bin/clang-?([0-9])?([0-9])[0-9]
|
|
sudo mv $ORIG_COMP $WRAPPED
|
|
fi
|