mirror of
https://github.com/holub/mame
synced 2025-04-28 11:11:48 +03:00
Merge pull request #201 from belegdol/master
Added OPT_FLAGS back [Belegdol]
This commit is contained in:
commit
36aa4adf50
5
makefile
5
makefile
@ -49,6 +49,7 @@
|
|||||||
# MAP = 1
|
# MAP = 1
|
||||||
# PROFILE = 1
|
# PROFILE = 1
|
||||||
# ARCHOPTS =
|
# ARCHOPTS =
|
||||||
|
# OPT_FLAGS =
|
||||||
# LDOPTS =
|
# LDOPTS =
|
||||||
|
|
||||||
# USE_SYSTEM_LIB_EXPAT = 1
|
# USE_SYSTEM_LIB_EXPAT = 1
|
||||||
@ -401,6 +402,10 @@ ifdef ARCHOPTS
|
|||||||
PARAMS += --ARCHOPTS='$(ARCHOPTS)'
|
PARAMS += --ARCHOPTS='$(ARCHOPTS)'
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifdef OPT_FLAGS
|
||||||
|
PARAMS += --OPT_FLAGS='$(OPT_FLAGS)'
|
||||||
|
endif
|
||||||
|
|
||||||
ifdef MAP
|
ifdef MAP
|
||||||
PARAMS += --MAP='$(MAP)'
|
PARAMS += --MAP='$(MAP)'
|
||||||
endif
|
endif
|
||||||
|
@ -168,6 +168,11 @@ newoption {
|
|||||||
description = "ARCHOPTS.",
|
description = "ARCHOPTS.",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
newoption {
|
||||||
|
trigger = "OPT_FLAGS",
|
||||||
|
description = "OPT_FLAGS.",
|
||||||
|
}
|
||||||
|
|
||||||
newoption {
|
newoption {
|
||||||
trigger = "LDOPTS",
|
trigger = "LDOPTS",
|
||||||
description = "Additional linker options",
|
description = "Additional linker options",
|
||||||
@ -739,6 +744,11 @@ if _OPTIONS["OPTIMIZE"] then
|
|||||||
_OPTIONS["ARCHOPTS"]
|
_OPTIONS["ARCHOPTS"]
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
if _OPTIONS["OPT_FLAGS"] then
|
||||||
|
buildoptions {
|
||||||
|
_OPTIONS["OPT_FLAGS"]
|
||||||
|
}
|
||||||
|
end
|
||||||
if _OPTIONS["LTO"]=="1" then
|
if _OPTIONS["LTO"]=="1" then
|
||||||
-- -flto=4 -> 4 threads
|
-- -flto=4 -> 4 threads
|
||||||
buildoptions {
|
buildoptions {
|
||||||
|
Loading…
Reference in New Issue
Block a user