aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMudassir Ali <140052763+Mudassir10X@users.noreply.github.com>2024-06-03 19:58:34 +0500
committerGitHub <noreply@github.com>2024-06-03 15:58:34 +0100
commite1663e985e2bc6c6311b6e81c296f6c4fd794e2d (patch)
tree60e1685273a3abad7e7885cef8139b8187995444
parent8ecd4c9f2a0c0be874dcced5037af92c1476dd18 (diff)
downloadsail-riscv-e1663e985e2bc6c6311b6e81c296f6c4fd794e2d.zip
sail-riscv-e1663e985e2bc6c6311b6e81c296f6c4fd794e2d.tar.gz
sail-riscv-e1663e985e2bc6c6311b6e81c296f6c4fd794e2d.tar.bz2
Use multiple threads for LTO
This uses the Make job server so that multiple threads can be used for LTO, which speeds up the build.
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index ea6244a..da40296 100644
--- a/Makefile
+++ b/Makefile
@@ -185,7 +185,7 @@ ifneq (,$(COVERAGE))
C_FLAGS += --coverage -O1
SAIL_FLAGS += -Oconstant_fold
else
-C_FLAGS += -O3 -flto
+C_FLAGS += -O3 -flto=auto
endif
ifneq (,$(SAILCOV))