Skip to content

Commit a10351d

Browse files
committed
fix linux compilation issue
1 parent c24dfbd commit a10351d

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

.github/workflows/cmake.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ jobs:
7474
- name: Install LLVM and Clang
7575
uses: KyleMayes/install-llvm-action@v2
7676
with:
77-
version: "16.0.6"
77+
version: "16"
7878

7979
- name: Set Clang 16 as Default
8080
if: matrix.os == 'ubuntu-22.04' && matrix.c_compiler == 'clang'

CMakeLists.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,8 +199,7 @@ elseif(LINUX)
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++ -D_FILE_OFFSET_BITS=64")
203-
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -lc++abi")
202+
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -stdlib=libc++")
204203
endif()
205204

206205
endif()

0 commit comments

Comments
 (0)