From d156a5bf40f16b968152e80f6c9c63fe1f6ff1cc Mon Sep 17 00:00:00 2001 From: Aqua-sama Date: Mon, 15 Mar 2021 17:40:19 +0200 Subject: Enable ThinLTO --- toolchain.makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'toolchain.makefile') diff --git a/toolchain.makefile b/toolchain.makefile index c3ac2d8..d8f09f7 100644 --- a/toolchain.makefile +++ b/toolchain.makefile @@ -8,13 +8,13 @@ AS := clang AS_FLAGS := LD := ld.lld -LD_FLAGS := +LD_FLAGS := -T linker.ld --thinlto-cache-dir=$(OBJ_DIR)/thinlto_cache CXX := clang++ TEST_CXX := clang++ CXX_FLAGS := -std=c++20 -g \ -mkernel -ffreestanding -nostdlib -nostdinc -nostdinc++ \ - -Wall -Wextra -Werror=pedantic -O2 \ + -Wall -Wextra -Werror=pedantic -O2 -flto=thin \ -Werror=date-time \ -Werror=shadow-all \ -Wold-style-cast -Wconversion \ -- cgit v1.2.1