File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -60,6 +60,22 @@ endif()
60
60
enable_language (C )
61
61
enable_language (CXX )
62
62
63
+ set (
64
+ FIREBASE_LD_EXECUTABLE
65
+ ""
66
+ CACHE
67
+ STRING
68
+ "The filename of the C/C++ linker to use. \
69
+ For example, the default linker for clang and gcc is ld. \
70
+ Using a fast linker, like mold (https://github.com/rui314/mold), \
71
+ could be useful during development to reduce build/test cycle times."
72
+ )
73
+
74
+ if (NOT ("${FIREBASE_LD_EXECUTABLE} " STREQUAL "" ))
75
+ set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fuse-ld=${FIREBASE_LD_EXECUTABLE} " )
76
+ set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fuse-ld=${FIREBASE_LD_EXECUTABLE} " )
77
+ endif ()
78
+
63
79
option (
64
80
FIREBASE_IOS_BUILD_BENCHMARKS
65
81
"Enable building of C++ and Objective-C benchmarks for this project"
You can’t perform that action at this time.
0 commit comments