aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Maurer <mmaurer@google.com>2022-04-27 11:20:10 -0700
committerMatthew Maurer <mmaurer@google.com>2022-04-27 11:20:10 -0700
commit940b3dabe32717012d8c279c804391d527aeb126 (patch)
tree18675cc50d63b84a78dd3be0548abe0767e282bb
parent8ed9da5ac516b30c4554ee55a35879a5a95458ac (diff)
downloadiw-940b3dabe32717012d8c279c804391d527aeb126.tar.gz
Explicitly set `-fno-strict-aliasing`
iw's own build system automatically adds `-fno-strict-aliasing` to its compile flags. Android currently adds `-fstrict-aliasing` to arm32 builds by default. To ensure no miscompilations on arm32, explicitly set `-fno-strict-aliasing` for the iw module. Bug: 230627866 Test: mm Change-Id: I8223dd9face5e74186adcb70e91cc06646bded7f
-rw-r--r--Android.bp1
1 files changed, 1 insertions, 0 deletions
diff --git a/Android.bp b/Android.bp
index a84f379..a3eb65d 100644
--- a/Android.bp
+++ b/Android.bp
@@ -81,6 +81,7 @@ cc_defaults {
],
cflags: [
+ "-fno-strict-aliasing",
"-D_GNU_SOURCE",
"-DCONFIG_LIBNL20",