diff options
author | Aqua-sama <aqua@iserlohn-fortress.net> | 2021-03-15 17:40:19 +0200 |
---|---|---|
committer | Aqua-sama <aqua@iserlohn-fortress.net> | 2021-03-15 17:40:19 +0200 |
commit | d156a5bf40f16b968152e80f6c9c63fe1f6ff1cc (patch) | |
tree | 900f76c963533fca41d6fea744a3d56bcc42410a /toolchain.makefile | |
parent | CGA: map and set buffer address in kernel main (diff) | |
download | kernel.cpp-d156a5bf40f16b968152e80f6c9c63fe1f6ff1cc.tar.xz |
Enable ThinLTO
Diffstat (limited to 'toolchain.makefile')
-rw-r--r-- | toolchain.makefile | 4 |
1 files changed, 2 insertions, 2 deletions
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 \ |