mirror of
https://github.com/corda/corda.git
synced 2025-01-19 03:06:36 +00:00
disable LTO by default
The -flto flag slows down linking dramatically without providing a noticeable improvement in speed or size. Rather than take the build-time hit every time we rebuild, let's only do it when it's explicitly requested.
This commit is contained in:
parent
e86fce28ec
commit
4ce7676b1a
6
makefile
6
makefile
@ -1054,15 +1054,9 @@ ifeq ($(mode),stress-major)
|
||||
endif
|
||||
ifeq ($(mode),fast)
|
||||
optimization-cflags = $(cflags_fast) -DNDEBUG
|
||||
ifeq ($(use-lto),)
|
||||
use-lto = true
|
||||
endif
|
||||
endif
|
||||
ifeq ($(mode),small)
|
||||
optimization-cflags = $(cflags_small) -DNDEBUG
|
||||
ifeq ($(use-lto),)
|
||||
use-lto = true
|
||||
endif
|
||||
endif
|
||||
|
||||
ifeq ($(use-lto),true)
|
||||
|
Loading…
Reference in New Issue
Block a user