1
0
mirror of https://github.com/janet-lang/janet synced 2024-11-24 17:27:18 +00:00

Enable LTO by default

Most compilers support it, and it gives a good perf increase OOTB.
This commit is contained in:
Calvin Rose 2020-01-20 11:38:22 -06:00
parent f4ad627b54
commit 3c87d89df3

View File

@ -37,7 +37,7 @@ MANPATH?=$(PREFIX)/share/man/man1/
PKG_CONFIG_PATH?=$(LIBDIR)/pkgconfig
DEBUGGER=gdb
CFLAGS:=$(CFLAGS) -std=c99 -Wall -Wextra -Isrc/include -Isrc/conf -fPIC -O2 -fvisibility=hidden \
CFLAGS:=$(CFLAGS) -std=c99 -Wall -Wextra -Isrc/include -Isrc/conf -fPIC -O2 -fvisibility=hidden -flto \
-DJANET_BUILD=$(JANET_BUILD)
LDFLAGS=-rdynamic