Use mold as linker for clang, if available
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
efb3bf19ec
commit
129a448267
|
@ -52,7 +52,12 @@ if (SHARED)
|
|||
endif (SHARED)
|
||||
|
||||
if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
|
||||
if (EXISTS /usr/bin/mold)
|
||||
message(STATUS "Mold found, using as linker")
|
||||
add_link_options(-fuse-ld=mold)
|
||||
else ()
|
||||
add_link_options(-fuse-ld=lld)
|
||||
endif ()
|
||||
# Only warn for unknown sanitizers. This error is not major enough to error on.
|
||||
add_compile_options(-Wno-error=unknown-sanitizers)
|
||||
# Ignore pedantic nullability extension warning, as we only use this for clang specifically
|
||||
|
|
Loading…
Reference in New Issue