diff options
-rw-r--r-- | build/scripts/copy_clang_profile_rt.py | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/build/scripts/copy_clang_profile_rt.py b/build/scripts/copy_clang_profile_rt.py index 1e5cd9c56a..7710615f32 100644 --- a/build/scripts/copy_clang_profile_rt.py +++ b/build/scripts/copy_clang_profile_rt.py @@ -4,15 +4,19 @@ import shutil import process_command_files as pcf -CLANG_RT_VERSION = 14 +# List is a temporary thing to ensure that nothing breaks before and after switching to newer clang +# Remove after DTCC-1902 +CLANG_RT_VERSIONS = [14, 16] def copy_clang_rt_profile(cmd, build_root, arch) -> None: profile_rt_lib = None resource_dir = None for arg in cmd: - if arg.startswith(f'contrib/libs/clang{CLANG_RT_VERSION}-rt/lib/profile/libclang_rt.profile'): - profile_rt_lib = arg + for version in CLANG_RT_VERSIONS: + if arg.startswith(f'contrib/libs/clang{version}-rt/lib/profile/libclang_rt.profile'): + profile_rt_lib = arg + break if arg.startswith('-resource-dir='): resource_dir = arg[len('-resource-dir='):] |