Merge pull request #769 from h0tw1r3/nw-build

support build without optimize flag (nw)
This commit is contained in:
Miodrag Milanović 2016-03-31 11:26:12 +02:00
commit 74d10ce1c2

View File

@ -748,17 +748,6 @@ if _OPTIONS["SYMBOLS"]~=nil and _OPTIONS["SYMBOLS"]~="0" then
}
end
--# add the optimization flag
buildoptions {
"-O".. _OPTIONS["OPTIMIZE"],
"-fno-strict-aliasing"
}
configuration { "mingw-clang" }
buildoptions {
"-O1", -- without this executable crash often
}
configuration { }
-- add the error warning flag
if _OPTIONS["NOWERROR"]==nil then
buildoptions {
@ -769,16 +758,9 @@ end
-- if we are optimizing, include optimization options
if _OPTIONS["OPTIMIZE"] then
buildoptions {
"-O".. _OPTIONS["OPTIMIZE"],
"-fno-strict-aliasing"
}
if _OPTIONS["ARCHOPTS"] then
buildoptions {
_OPTIONS["ARCHOPTS"]
}
linkoptions {
_OPTIONS["ARCHOPTS"]
}
end
if _OPTIONS["OPT_FLAGS"] then
buildoptions {
_OPTIONS["OPT_FLAGS"]
@ -831,6 +813,21 @@ if _OPTIONS["OPTIMIZE"] then
end
end
configuration { "mingw-clang" }
buildoptions {
"-O1", -- without this executable crash often
}
configuration { }
if _OPTIONS["ARCHOPTS"] then
buildoptions {
_OPTIONS["ARCHOPTS"]
}
linkoptions {
_OPTIONS["ARCHOPTS"]
}
end
if _OPTIONS["SHLIB"] then
buildoptions {
"-fPIC"