Skip to content
Snippets Groups Projects
Commit c8e33e0b authored by Philip Trettner's avatar Philip Trettner
Browse files

made ld.mold the default on linux

parent de080b53
Branches develop
No related tags found
No related merge requests found
......@@ -13,7 +13,8 @@ set(GLOW_USE_OWN_GLAD ON CACHE BOOL "If true, extern/glad is used")
# build options
set(GLOW_LINK_TYPE SHARED CACHE STRING "Defines the build type of libraries (shared is default)")
set(GLOW_USE_GOLD_LINKER ON CACHE BOOL "If true, ld.gold is used for linking")
set(GLOW_USE_MOLD_LINKER ON CACHE BOOL "If true, ld.mold is used for linking")
set(GLOW_USE_GOLD_LINKER OFF CACHE BOOL "If true, ld.gold is used for linking")
set(GLOW_ENABLE_MARCH_NATIVE ON CACHE BOOL "If true, adds -march=native")
# misc
......@@ -110,8 +111,11 @@ if(NOT MSVC)
target_link_libraries(glow PUBLIC pthread)
# mold linker
if(GLOW_USE_MOLD_LINKER)
target_link_libraries(glow PUBLIC -fuse-ld=mold)
# gold linker
if(GLOW_USE_GOLD_LINKER)
elseif(GLOW_USE_GOLD_LINKER)
# WRONG: target_compile_options(glow PUBLIC -fuse-ld=gold )
target_link_libraries(glow PUBLIC -fuse-ld=gold)
endif()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment