This commit is contained in:
Yuhang Zhao 2023-05-17 19:49:29 +08:00
parent 65fc009da7
commit c302cdcdbd
1 changed files with 1 additions and 2 deletions

View File

@ -685,9 +685,8 @@ function(setup_compile_params)
endif() endif()
endif() endif()
else() else()
#target_compile_options(${__target} PRIVATE -fuse-ld=lld)
target_link_options(${__target} PRIVATE target_link_options(${__target} PRIVATE
-Wl,--color-diagnostics -Wl,-z,keep-text-section-prefix -fuse-ld=lld -Wl,--color-diagnostics -Wl,-z,keep-text-section-prefix
) )
if(APPLE) if(APPLE)
# TODO: -fobjc-arc (http://clang.llvm.org/docs/AutomaticReferenceCounting.html) # TODO: -fobjc-arc (http://clang.llvm.org/docs/AutomaticReferenceCounting.html)