From c3226110f6671511df4f2e7095cc08ec9b5dc553 Mon Sep 17 00:00:00 2001 From: Jakub Sztandera Date: Tue, 7 May 2019 04:02:25 +0200 Subject: [PATCH] Enable flt-lto-objects for listing generation I suspect that since -flto was added listing generation wasn't working. -ffat-lto-objects allows tools like objdump to still work by including both the internal compiler representation (for LTO) and generated code in the .o files. It increases the compile time from 12s to 17s on my machine but I think it is small enough cost for the benefit. Signed-off-by: Jakub Sztandera License: MIT --- workspace/TS100/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/workspace/TS100/Makefile b/workspace/TS100/Makefile index 0a56e560..4771ed64 100644 --- a/workspace/TS100/Makefile +++ b/workspace/TS100/Makefile @@ -35,7 +35,7 @@ HEXFILE_DIR=Hexfile OUTPUT_DIR=Objects # code optimisation ------------------------------------------------------------ -OPTIM=-Os -flto -finline-small-functions -findirect-inlining -fdiagnostics-color -ffunction-sections -fdata-sections +OPTIM=-Os -flto -ffat-lto-objects -finline-small-functions -findirect-inlining -fdiagnostics-color -ffunction-sections -fdata-sections # global defines ---------------------------------------------------------------