mirror of https://github.com/zeldaret/botw.git
Link with lld if possible (for build time reasons)
This commit is contained in:
parent
834f44e556
commit
ae959af71e
|
|
@ -33,6 +33,9 @@ set(CMAKE_ASM_FLAGS "${CMAKE_ASM_FLAGS} -x assembler-with-cpp ${ARCH}")
|
|||
|
||||
add_compile_options(-fPIC -stdlib=libc++ -mno-implicit-float)
|
||||
add_link_options(-B ${DEVKITA64}/bin -fPIC -Wl,-Bsymbolic-functions -shared -nodefaultlibs)
|
||||
if(EXISTS "${DEVKITA64}/bin/ld.lld")
|
||||
add_link_options(-fuse-ld=lld -Wl,-z,notext)
|
||||
endif()
|
||||
add_definitions(-D SWITCH -D __DEVKITA64__ -D __ELF__)
|
||||
add_definitions(-D NNSDK)
|
||||
add_definitions(-D MATCHING_HACK_NX_CLANG)
|
||||
|
|
|
|||
Loading…
Reference in New Issue