mingw autosetup changed

git-svn-id: svn://ultimatepp.org/upp/trunk@9631 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2016-03-26 12:25:22 +00:00
parent 5b2dc3973d
commit ea151987ec
2 changed files with 4 additions and 3 deletions

View file

@ -426,7 +426,7 @@ bool LocalProcess::IsRunning() {
return false;
}
int status = 0, wp;
if(!( (wp = waitpid(pid, &status, WNOHANG | WUNTRACED)) == pid &&
if(!( (wp = waitpid(pid, &status, WNOHANG | WUNTRACED)) == pid &&
DecodeExitCode(status) ))
return true;
LLOG("IsRunning() -> no, just exited, exit code = " << exit_code);

View file

@ -255,8 +255,9 @@ void InstantSetup()
bmSet(bm, "DEBUG_LINK", "");
bmSet(bm, "RELEASE_BLITZ", "");
bmSet(bm, "RELEASE_LINKMODE", "0");
bmSet(bm, "RELEASE_OPTIONS", "-O3 -ffunction-sections");
bmSet(bm, "RELEASE_SIZE_OPTIONS", "-O3 -Os -finline-limit=20 -ffunction-sections");
String olevel = x64 ? "-O3 " : "-Os ";
bmSet(bm, "RELEASE_OPTIONS", olevel + "-ffunction-sections");
bmSet(bm, "RELEASE_SIZE_OPTIONS", olevel + "-finline-limit=20 -ffunction-sections");
bmSet(bm, "RELEASE_FLAGS", "");
bmSet(bm, "RELEASE_LINK", "");
bmSet(bm, "DEBUGGER", "gdb");