Commit 857465ec authored by Richard Gobeille's avatar Richard Gobeille
Browse files

Makefile: if not 0 or 1, pass value of LTO variable as parameter to -flto argument

parent 7a786788
......@@ -585,10 +585,14 @@ endif
ifneq (0,$(LTO))
COMPILERFLAGS += -DUSING_LTO
ifeq (0,$(CLANG))
COMMONFLAGS += -flto
ifeq (1,$(LTO))
ifeq (0,$(CLANG))
COMMONFLAGS += -flto
else
COMMONFLAGS += -flto=thin
endif
else
COMMONFLAGS += -flto=thin
COMMONFLAGS += -flto=$(LTO)
endif
endif
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment