Skip to content
Snippets Groups Projects
Commit c14c97ec authored by Deucе's avatar Deucе :ok_hand_tone4:
Browse files

Enable LTO unless NO_LTO is defined...

We may want to set NO_LTO for the pipeline...
parent d38888de
No related branches found
No related tags found
1 merge request!455Update branch with changes from master
......@@ -51,6 +51,7 @@
# OBJPATH_SUFFIX - Suffix appended to OBJPATH useful for compiling #
# different options of the same source file #
# STATIC - Create a statically linked build if possible #
# NO_LTO - Disable Link-Time Optimizations #
# #
# Common Build Macros Defined: #
# DELETE - Delete files (Preferrably verbose) #
......@@ -496,6 +497,10 @@ else # RELEASE
# -finline-functions (used to) break the baja build badly.
# This also meant that -O3 wouldn't work either.
CFLAGS := -O3 -Wno-unused-result -fomit-frame-pointer -ffast-math -funroll-loops $(CFLAGS)
ifndef NO_LTO
CFLAGS += -flto
LDFLAGS += -flto
endif
endif
CFLAGS += -fno-delete-null-pointer-checks
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment