Skip to content

Commit

Permalink
add_link_options
Browse files Browse the repository at this point in the history
  • Loading branch information
daschuer authored Oct 21, 2024
1 parent 1b6534a commit 93bb77d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -683,6 +683,11 @@ if(0)
endif()
endif()

add_link_options("-fuse-ld=lld")
add_link_options($<$<COMPILE_LANGUAGE:CXX>:-nostdlib++>)
add_link_options($<$<COMPILE_LANGUAGE:CXX>:-lc++>)
add_link_options($<$<COMPILE_LANGUAGE:CXX>:-lc++abi>)

if(CMAKE_VERSION VERSION_LESS "3.7.0")
set(CMAKE_INCLUDE_CURRENT_DIR ON)
endif()
Expand Down

0 comments on commit 93bb77d

Please sign in to comment.