Skip to content

Commit 4795134

Browse files
committed
Remove the libc++abi headers, use the system libsupc++ headers consistently
The system headers end up included regardless. But if the libc++abi headers are there too, they conflict as they have a different signature for the __cxa_init_primary_exception function. See also: llvm/llvm-project#121300
1 parent 8b0c4dc commit 4795134

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,9 @@ jobs:
139139
wget https://apt.llvm.org/llvm.sh
140140
chmod +x llvm.sh
141141
sudo ./llvm.sh ${{matrix.config.clang_version}} all
142+
# The libc++abi headers conflict with the system headers:
143+
# https://github.com/llvm/llvm-project/issues/121300
144+
sudo apt-get remove libc++abi-${{matrix.config.clang_version}}-dev
142145
143146
- name: Install System LLVM+Clang
144147
if: startsWith(matrix.config.os, 'ubuntu-') && matrix.config.clang_version == matrix.config.installed_clang_version

.github/workflows/try.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,9 @@ jobs:
140140
wget https://apt.llvm.org/llvm.sh
141141
chmod +x llvm.sh
142142
sudo ./llvm.sh ${{matrix.config.clang_version}} all
143+
# The libc++abi headers conflict with the system headers:
144+
# https://github.com/llvm/llvm-project/issues/121300
145+
sudo apt-get remove libc++abi-${{matrix.config.clang_version}}-dev
143146
144147
- name: Install System LLVM+Clang
145148
if: startsWith(matrix.config.os, 'ubuntu-') && matrix.config.clang_version == matrix.config.installed_clang_version

0 commit comments

Comments
 (0)