|
66 | 66 | sudo apt-get install -y curl zip unzip libgtest-dev libgmock-dev binutils |
67 | 67 | # Install debug symbols for system libraries |
68 | 68 | sudo apt-get install -y libc6-dbg |
69 | | - # Install GCC with sanitizer support (provides libasan, libtsan for asan/tsan builds) |
70 | | - # Even though clang is the primary compiler, the build falls back to gcc's sanitizer libs |
71 | | - # Install both gcc and the sanitizer runtime libraries explicitly |
72 | | - sudo apt-get install -y gcc g++ libasan6 libtsan2 || sudo apt-get install -y gcc g++ libasan5 libtsan0 |
73 | 69 | if [[ ${{ matrix.java_version }} =~ "-zing" ]]; then |
74 | 70 | sudo apt-get install -y g++-9 gcc-9 |
75 | 71 | sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-9 100 --slave /usr/bin/g++ g++ /usr/bin/g++-9 |
@@ -301,13 +297,11 @@ jobs: |
301 | 297 | if: steps.set_enabled.outputs.enabled == 'true' |
302 | 298 | run: | |
303 | 299 | sudo apt update -y |
304 | | - # Don't remove g++ - keep gcc for sanitizer libraries (libasan, libtsan) |
| 300 | + sudo apt remove -y g++ |
| 301 | + sudo apt autoremove -y |
305 | 302 | sudo apt install -y curl zip unzip clang make build-essential binutils |
306 | 303 | # Install debug symbols for system libraries |
307 | 304 | sudo apt install -y libc6-dbg |
308 | | - # Ensure gcc/g++ are installed for sanitizer support |
309 | | - # Install both gcc and the sanitizer runtime libraries explicitly |
310 | | - sudo apt install -y gcc g++ libasan6 libtsan2 || sudo apt install -y gcc g++ libasan5 libtsan0 |
311 | 305 | if [[ ${{ matrix.java_version }} =~ "-zing" ]]; then |
312 | 306 | sudo apt -y install g++-9 gcc-9 |
313 | 307 | sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-9 100 --slave /usr/bin/g++ g++ /usr/bin/g++-9 |
|
0 commit comments