Skip to content

Commit

Permalink
Try linking libsystem statically (#67)
Browse files Browse the repository at this point in the history
  • Loading branch information
tech-ticks authored Jul 21, 2024
1 parent a45dbc1 commit 6fe0aa6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ if(APPLE)
else()
message(WARNING "Homebrew LLVM not found. Using system default, this might or might not work.")
endif()

set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -static")
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -static")
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -static")
endif()

if(MSVC)
Expand Down

0 comments on commit 6fe0aa6

Please sign in to comment.