]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
build: Make it possible to opt out of probing for fastest linker
authorJoel Rosdahl <joel@rosdahl.net>
Wed, 8 Jun 2022 13:53:29 +0000 (15:53 +0200)
committerJoel Rosdahl <joel@rosdahl.net>
Wed, 8 Jun 2022 14:49:12 +0000 (16:49 +0200)
cmake/UseFastestLinker.cmake

index b38833cff7cb291f2e0ab0d8e3a488799f3f8685..345ef1df573b918313f9444a8518084981df3f13 100644 (file)
@@ -5,6 +5,11 @@ if(NOT CCACHE_DEV_MODE)
   return()
 endif()
 
+if(DISABLE_FASTEST_LINKER)
+  message(STATUS "Not probing for fastest linker")
+  return()
+endif()
+
 if(MSVC)
   message(STATUS "Using standard linker for MSVC")
   return()