mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 11:25:00 +00:00
Bug 1368649 - Default to -O2 when building on Linux without PGO. r=gps
-Os generates smaller code, at the expense of performance. On desktop, this tradeoff is not necessarily the best, especially when considering the vast performance difference. Most downstream redistributors also don't do PGO and don't override defaults, so they would tend to ship slower builds as a consequence. --HG-- extra : rebase_source : 7d66393d03b9424fdcc46874a09239ffe46cfb33
This commit is contained in:
parent
fbabaaa37f
commit
a9c8986f6c
@ -98,8 +98,8 @@ check_and_add_gcc_warning('-Wno-error=array-bounds')
|
||||
# can't get rid of those PGO warnings
|
||||
check_and_add_gcc_warning('-Wno-error=coverage-mismatch', when='MOZ_PGO')
|
||||
|
||||
# false positives during PGO
|
||||
check_and_add_gcc_warning('-Wno-error=free-nonheap-object', when='MOZ_PGO')
|
||||
# false positives depending on optimizations
|
||||
check_and_add_gcc_warning('-Wno-error=free-nonheap-object')
|
||||
|
||||
# catches format/argument mismatches with printf
|
||||
check_and_add_gcc_warning('-Wformat')
|
||||
|
@ -888,7 +888,7 @@ case "$target" in
|
||||
*-*linux*)
|
||||
if test "$GNU_CC" -o "$GNU_CXX"; then
|
||||
MOZ_PGO_OPTIMIZE_FLAGS="-O3"
|
||||
MOZ_OPTIMIZE_FLAGS="-Os"
|
||||
MOZ_OPTIMIZE_FLAGS="-O2"
|
||||
if test -z "$CLANG_CC"; then
|
||||
MOZ_OPTIMIZE_FLAGS="-freorder-blocks $MOZ_OPTIMIZE_FLAGS"
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user