Skip to content

Commit

Permalink
AzDO pipelines no longer have ubuntu-18.04. Try ubuntu-20.04
Browse files Browse the repository at this point in the history
20.04 has clang 10, not clang 9.
  • Loading branch information
BruceForstall committed Aug 8, 2023
1 parent b43ddcc commit 6e21610
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 8 deletions.
18 changes: 12 additions & 6 deletions build-coredistools.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,19 +35,25 @@ fi

C_COMPILER=$(command -v clang)
if [ -z "$C_COMPILER" ]; then
C_COMPILER=$(command -v clang-9)
C_COMPILER=$(command -v clang-10)
if [ -z "$C_COMPILER" ]; then
echo "C compiler not found"
# Keep going in case cmake can find one?
C_COMPILER=$(command -v clang-9)
if [ -z "$C_COMPILER" ]; then
echo "C compiler not found"
# Keep going in case cmake can find one?
fi
fi
fi

CXX_COMPILER=$(command -v clang++)
if [ -z "$CXX_COMPILER" ]; then
CXX_COMPILER=$(command -v clang++-9)
CXX_COMPILER=$(command -v clang++-10)
if [ -z "$CXX_COMPILER" ]; then
echo "C++ compiler not found"
# Keep going in case cmake can find one?
CXX_COMPILER=$(command -v clang++-9)
if [ -z "$CXX_COMPILER" ]; then
echo "C++ compiler not found"
# Keep going in case cmake can find one?
fi
fi
fi

Expand Down
4 changes: 2 additions & 2 deletions coredistools.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ jobs:
pool:
# CBL-Mariner:
# vmImage: ubuntu-latest
vmImage: ubuntu-18.04
vmImage: ubuntu-20.04

workspace:
clean: all
Expand Down Expand Up @@ -178,7 +178,7 @@ jobs:
displayName: Build coredistools Linux x64

pool:
vmImage: ubuntu-18.04
vmImage: ubuntu-20.04

variables:
TargetOSArchitecture: linux-x64
Expand Down

0 comments on commit 6e21610

Please sign in to comment.