disabled LTO for host release build on windows
This commit is contained in:
parent
4f761a4ed0
commit
f52d615196
@ -227,7 +227,6 @@ DEAD_CODE_REMOVAL = -Wl,--gc-sections
|
|||||||
# Link time is larger and size of object files can not be retrieved
|
# Link time is larger and size of object files can not be retrieved
|
||||||
# but resulting binary is smaller. Could be used in mission/deployment build
|
# but resulting binary is smaller. Could be used in mission/deployment build
|
||||||
# Requires -ffunction-section in linker call
|
# Requires -ffunction-section in linker call
|
||||||
LINK_TIME_OPTIMIZATION = -flto
|
|
||||||
OPTIMIZATION += $(PROTOTYPE_OPTIMIZATION)
|
OPTIMIZATION += $(PROTOTYPE_OPTIMIZATION)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
@ -309,7 +308,10 @@ all: executable
|
|||||||
|
|
||||||
# Build target configuration
|
# Build target configuration
|
||||||
release: OPTIMIZATION = -Os $(PROTOTYPE_OPTIMIZATION) $(LINK_TIME_OPTIMIZATION)
|
release: OPTIMIZATION = -Os $(PROTOTYPE_OPTIMIZATION) $(LINK_TIME_OPTIMIZATION)
|
||||||
|
# Problematic on MinGW
|
||||||
|
ifneq ($(OS),Windows_NT)
|
||||||
release: LINK_TIME_OPTIMIZATION = -flto
|
release: LINK_TIME_OPTIMIZATION = -flto
|
||||||
|
endif
|
||||||
release: TARGET = Release
|
release: TARGET = Release
|
||||||
release: OPTIMIZATION_MESSAGE = On with Link Time Optimization
|
release: OPTIMIZATION_MESSAGE = On with Link Time Optimization
|
||||||
release: DEBUG_LEVEL = -g0
|
release: DEBUG_LEVEL = -g0
|
||||||
|
Loading…
Reference in New Issue
Block a user