From d39920b62e3e0371c5698aae2c316671130b0956 Mon Sep 17 00:00:00 2001 From: Aqua-sama Date: Tue, 16 Mar 2021 12:34:18 +0200 Subject: Switch lto to full --- toolchain.makefile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'toolchain.makefile') diff --git a/toolchain.makefile b/toolchain.makefile index ce8fdc6..a4a0667 100644 --- a/toolchain.makefile +++ b/toolchain.makefile @@ -8,13 +8,13 @@ AS := clang AS_FLAGS := LD := ld.lld -LD_FLAGS := -nostdlib -T linker.ld --thinlto-cache-dir=$(OBJ_DIR)/thinlto_cache -# TODO: linking fails with -O0 and -O1 without -flto=thin +LD_FLAGS := -nostdlib -T linker.ld CXX := clang++ TEST_CXX := clang++ -CXX_FLAGS := -std=c++20 -g -O2 -flto=thin \ - -mkernel -ffreestanding -nostdlib -nostdinc -nostdinc++ \ +CXX_FLAGS := -std=c++20 -g -O3 -flto=full \ + -static -ffreestanding -fno-common -nostdinc -nostdinc++ \ + -fno-use-cxa-atexit -fno-rtti -fno-exceptions -fno-non-call-exceptions \ -Wall -Wextra -Werror=pedantic \ -Werror=date-time \ -Werror=shadow-all \ -- cgit v1.2.1