Skip to content

Commit b36f20b

Browse files
committed
custom glibc
1 parent 789919b commit b36f20b

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.github/workflows/cmake.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ jobs:
9393
sudo update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-16 100
9494
sudo update-alternatives --set clang /usr/bin/clang-16
9595
sudo update-alternatives --set clang++ /usr/bin/clang++-16
96+
export LD_LIBRARY_PATH=$glibc_install/lib:$LD_LIBRARY_PATH
9697
9798
- name: Check Clang Settings
9899
if: matrix.os == 'ubuntu-latest' && matrix.c_compiler == 'clang'

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,11 +195,11 @@ elseif(APPLE)
195195
create_source_groups(MACOS_SOURCES)
196196

197197
elseif(LINUX)
198-
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DGUID_STDLIB -std=c++17")
198+
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DGUID_STDLIB -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++17")
199199

200200
if (CMAKE_CXX_COMPILER MATCHES "clang")
201201
message(STATUS "Detected Clang compiler: ${CMAKE_CXX_COMPILER}")
202-
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -stdlib=libc++")
202+
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -stdlib=libc++ -nostdinc++ -I$ENV{glibc_install}/include/c++/v1 -L$ENV{glibc_install}/lib")
203203
endif()
204204

205205
endif()

0 commit comments

Comments
 (0)