-
Notifications
You must be signed in to change notification settings - Fork 193
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
10ce8cd
commit 82822e4
Showing
2 changed files
with
17 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
LDFLAGS+=-fuse-ld=lld |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# Switches linker to 'mold' | ||
# https://github.com/rui314/mold | ||
# | ||
# This linker is usually much faster than the default linker when working | ||
# with large binaries (Rust projects, fdctl, etc.) | ||
|
||
MOLD_LDFLAGS=-fuse-ld=mold | ||
|
||
ifdef FD_USING_GCC | ||
ifeq ($(shell test $(FD_COMPILER_MAJOR_VERSION) -lt 12 && echo 1),1) | ||
# Old GCC versions don't recognize mold | ||
MOLD_LDFLAGS=-B$(shell which mold) | ||
endif | ||
endif | ||
|
||
LDFLAGS+=$(MOLD_LDFLAGS) |