From 78b1a3fc46f182c9277b532ac6f65f4bc35f230c Mon Sep 17 00:00:00 2001 From: Fredrik Roubert Date: Wed, 22 Nov 2023 23:37:23 +0100 Subject: [PATCH] ICU-22522 Update the Azure CI from Clang 14 to Clang 16. --- .ci-builds/.azure-pipelines.yml | 56 ++++++++++++++++----------------- 1 file changed, 28 insertions(+), 28 deletions(-) diff --git a/.ci-builds/.azure-pipelines.yml b/.ci-builds/.azure-pipelines.yml index d1288509d610..c0599ad9f5ec 100644 --- a/.ci-builds/.azure-pipelines.yml +++ b/.ci-builds/.azure-pipelines.yml @@ -72,7 +72,7 @@ jobs: CC: clang CXX: clang++ #------------------------------------------------------------------------- -- job: ICU4C_Clang_Cpp14_Debug_Ubuntu_2204 +- job: ICU4C_Clang_Cpp17_Debug_Ubuntu_2204 displayName: 'C: Linux Clang C++17 Debug (Ubuntu 22.04)' timeoutInMinutes: 30 pool: @@ -143,8 +143,8 @@ jobs: CXX: clang++ LANG: "en_US@calendar=gregorian;hours=h12" #------------------------------------------------------------------------- -- job: ICU4C_Clang14_Ubuntu_2004_WarningsAsErrors - displayName: 'C: Linux Clang-14 WarningsAsErrors (Ubuntu 20.04)' +- job: ICU4C_Clang16_Ubuntu_2004_WarningsAsErrors + displayName: 'C: Linux Clang-16 WarningsAsErrors (Ubuntu 20.04)' timeoutInMinutes: 30 pool: vmImage: 'ubuntu-20.04' @@ -152,23 +152,23 @@ jobs: - checkout: self lfs: true fetchDepth: 10 - # Install Clang-14 from https://apt.llvm.org/ + # Install Clang-16 from https://apt.llvm.org/ - script: | curl -Ls https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add - - sudo apt-add-repository 'deb http://apt.llvm.org/focal/ llvm-toolchain-focal-14 main' + sudo apt-add-repository 'deb http://apt.llvm.org/focal/ llvm-toolchain-focal-16 main' sudo apt update - sudo apt install -qy clang-14 lld-14 libc++-14-dev libc++abi-14-dev - displayName: 'Install Clang-14' + sudo apt install -qy clang-16 lld-16 libc++-16-dev libc++abi-16-dev + displayName: 'Install Clang-16' - script: | cd icu4c/source && ./runConfigureICU Linux && make -j -l2.5 tests displayName: 'Build only (WarningsAsErrors)' env: - CC: clang-14 - CPPFLAGS: '-Werror -Wall -Wextra -Wextra-semi -Wundef -Wnon-virtual-dtor -Wsuggest-override' - CXX: clang++-14 + CC: clang-16 + CPPFLAGS: '-Werror -Wno-strict-prototypes -Wno-gnu-offsetof-extensions -Wall -Wextra -Wextra-semi -Wundef -Wnon-virtual-dtor -Wsuggest-override' + CXX: clang++-16 #------------------------------------------------------------------------- -- job: ICU4C_Clang14_Cpp20_Ubuntu_2004 - displayName: 'C: Linux Clang-14 C++20 (Ubuntu 20.04)' +- job: ICU4C_Clang16_Cpp20_Ubuntu_2004 + displayName: 'C: Linux Clang-16 C++20 (Ubuntu 20.04)' timeoutInMinutes: 30 pool: vmImage: 'ubuntu-20.04' @@ -176,24 +176,24 @@ jobs: - checkout: self lfs: true fetchDepth: 10 - # Install Clang-14 from https://apt.llvm.org/ + # Install Clang-16 from https://apt.llvm.org/ - script: | curl -Ls https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add - - sudo apt-add-repository 'deb http://apt.llvm.org/focal/ llvm-toolchain-focal-14 main' + sudo apt-add-repository 'deb http://apt.llvm.org/focal/ llvm-toolchain-focal-16 main' sudo apt update - sudo apt install -qy clang-14 lld-14 libc++-14-dev libc++abi-14-dev - displayName: 'Install Clang-14' + sudo apt install -qy clang-16 lld-16 libc++-16-dev libc++abi-16-dev + displayName: 'Install Clang-16' - script: | cd icu4c/source && ./runConfigureICU Linux && make -j -l2.5 check displayName: 'Build and Test' env: - CC: clang-14 - CPPFLAGS: '-Werror' - CXX: clang++-14 + CC: clang-16 + CPPFLAGS: '-Werror -Wno-strict-prototypes -Wno-gnu-offsetof-extensions' + CXX: clang++-16 CXXFLAGS: '-std=c++20' #------------------------------------------------------------------------- -- job: ICU4C_Clang14_Cpp20_libcpp_Ubuntu_2004 - displayName: 'C: Linux Clang-14 C++20 libc++ (Ubuntu 20.04)' +- job: ICU4C_Clang16_Cpp20_libcpp_Ubuntu_2004 + displayName: 'C: Linux Clang-16 C++20 libc++ (Ubuntu 20.04)' timeoutInMinutes: 30 pool: vmImage: 'ubuntu-20.04' @@ -201,20 +201,20 @@ jobs: - checkout: self lfs: true fetchDepth: 10 - # Install Clang-14 from https://apt.llvm.org/ + # Install Clang-16 from https://apt.llvm.org/ - script: | curl -Ls https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add - - sudo apt-add-repository 'deb http://apt.llvm.org/focal/ llvm-toolchain-focal-14 main' + sudo apt-add-repository 'deb http://apt.llvm.org/focal/ llvm-toolchain-focal-16 main' sudo apt update - sudo apt install -qy clang-14 lld-14 libc++-14-dev libc++abi-14-dev - displayName: 'Install Clang-14' + sudo apt install -qy clang-16 lld-16 libc++-16-dev libc++abi-16-dev + displayName: 'Install Clang-16' - script: | cd icu4c/source && ./runConfigureICU Linux && make -j -l2.5 check displayName: 'Build and Test' env: - CC: clang-14 - CPPFLAGS: '-Werror' - CXX: clang++-14 + CC: clang-16 + CPPFLAGS: '-Werror -Wno-strict-prototypes -Wno-gnu-offsetof-extensions' + CXX: clang++-16 CXXFLAGS: '-std=c++20 -stdlib=libc++' #------------------------------------------------------------------------- # VS 2022 Builds