Merge pull request #201 from belegdol/master

Added OPT_FLAGS back [Belegdol]
This commit is contained in:
R. Belmont 2015-06-06 07:55:22 -04:00
commit 36aa4adf50
2 changed files with 15 additions and 0 deletions

View File

@ -49,6 +49,7 @@
# MAP = 1
# PROFILE = 1
# ARCHOPTS =
# OPT_FLAGS =
# LDOPTS =
# USE_SYSTEM_LIB_EXPAT = 1
@ -401,6 +402,10 @@ ifdef ARCHOPTS
PARAMS += --ARCHOPTS='$(ARCHOPTS)'
endif
ifdef OPT_FLAGS
PARAMS += --OPT_FLAGS='$(OPT_FLAGS)'
endif
ifdef MAP
PARAMS += --MAP='$(MAP)'
endif

View File

@ -168,6 +168,11 @@ newoption {
description = "ARCHOPTS.",
}
newoption {
trigger = "OPT_FLAGS",
description = "OPT_FLAGS.",
}
newoption {
trigger = "LDOPTS",
description = "Additional linker options",
@ -739,6 +744,11 @@ if _OPTIONS["OPTIMIZE"] then
_OPTIONS["ARCHOPTS"]
}
end
if _OPTIONS["OPT_FLAGS"] then
buildoptions {
_OPTIONS["OPT_FLAGS"]
}
end
if _OPTIONS["LTO"]=="1" then
-- -flto=4 -> 4 threads
buildoptions {