SCons: Default optimize to auto, fixing target/dev_build inference for Web

Fixes #94087.
This commit is contained in:
Rémi Verschelde 2024-07-09 00:17:16 +02:00
parent b0467d07bf
commit 8897c77d50
No known key found for this signature in database
GPG key ID: C3336907360768E1
2 changed files with 13 additions and 8 deletions

View file

@ -78,6 +78,7 @@ def get_flags():
# -Os reduces file size by around 5 MiB over -O3. -Oz only saves about
# 100 KiB over -Os, which does not justify the negative impact on
# run-time performance.
# Note that this overrides the "auto" behavior for target/dev_build.
"optimize": "size",
}