mirror of
https://github.com/zeldaret/botw.git
synced 2024-11-27 15:10:35 +00:00
Add support for using custom linker (e.g. mold)
This commit is contained in:
parent
1ecd2959cb
commit
99e1bbf423
@ -38,5 +38,10 @@ add_definitions(-D MATCHING_HACK_NX_CLANG)
|
|||||||
|
|
||||||
add_link_options(-stdlib=libc++ -nostdlib)
|
add_link_options(-stdlib=libc++ -nostdlib)
|
||||||
add_link_options(-fPIC -Wl,-Bsymbolic-functions -shared)
|
add_link_options(-fPIC -Wl,-Bsymbolic-functions -shared)
|
||||||
# Use lld for performance reasons (and because we don't want a dependency on GNU tools)
|
if (DEFINED UKING_LINKER)
|
||||||
add_link_options(-fuse-ld=lld)
|
message(STATUS "Using custom linker: ${UKING_LINKER}")
|
||||||
|
add_link_options(-fuse-ld=${UKING_LINKER})
|
||||||
|
else()
|
||||||
|
# Use lld for performance reasons (and because we don't want a dependency on GNU tools)
|
||||||
|
add_link_options(-fuse-ld=lld)
|
||||||
|
endif()
|
||||||
|
Loading…
Reference in New Issue
Block a user