aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYiwei Zhang <zzyiwei@chromium.org>2024-05-04 23:20:36 +0000
committerAngle LUCI CQ <angle-scoped@luci-project-accounts.iam.gserviceaccount.com>2024-05-06 19:27:21 +0000
commit5c78d084206f095337c663ac7747e02fdc5b72d9 (patch)
treeefe59622cb11794b1c5a1eb19d1606762c2a7171
parentf8f2a10b80369443fcb6328c1a3305e5b4e963de (diff)
downloadangle-5c78d084206f095337c663ac7747e02fdc5b72d9.tar.gz
Android: explicitly disable stack protection
This isn't needed by aosp build angle sp-hal and helps reduce cpu overhead. Bug: b/331680143, b/333235176 Test: 5% gain in gfxbench gl_driver2_off score on x86 Change-Id: I0e8662987ef040b1ac5df34a69e90c158363b36f Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/5516929 Reviewed-by: Shahbaz Youssefi <syoussefi@chromium.org> Commit-Queue: Roman Lavrov <romanl@google.com> Reviewed-by: Roman Lavrov <romanl@google.com> Auto-Submit: Yiwei Zhang <zzyiwei@chromium.org>
-rw-r--r--scripts/generate_android_bp.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/generate_android_bp.py b/scripts/generate_android_bp.py
index c967ecb73f..bd17c15178 100644
--- a/scripts/generate_android_bp.py
+++ b/scripts/generate_android_bp.py
@@ -639,6 +639,8 @@ def main():
'-O2',
# Override AOSP build flags to match ANGLE's CQ testing and reduce binary size
'-fno-unwind-tables',
+ # Disable stack protector to reduce cpu overhead.
+ '-fno-stack-protector',
],
}))