Do not specify linker in compilation flags. (#17677)
vkalintiris committed
May 19, 2024 at 14:58 UTC
edf0bcb45f97c2f9b28c0b2ce4ff2f8c16e83714
1 file changed
-1
CMakeLists.txt
-1
@@ -108,7 +108,6 @@ if(USE_MOLD)
108
string(REPLACE "\n" "" MOLD_VERSION "${MOLD_VERSION}")
109
message(CHECK_PASS "found (version: ${MOLD_VERSION})")
110
message(STATUS "Using mold instead of the system default for linking.")
111
- add_compile_options("-fuse-ld=mold")
111
add_link_options("-fuse-ld=mold")
112
else()
113
message(CHECK_FAIL "failed")