I have a third_party module (i.e. third_party/myextension) with some parts of it written in assembly. When building 117 Android/arm64 now, it seems changes were introduced to clang where it fails with "Unsupported option '-mbranch-protection='" when trying to compile asm to object files. Previously on 116 it was just spewing a warning:
"argument unused during compilation: '-mbranch=protection=standard"
I have very limited experience with BUILD config files, and played with custom configs for my module but it looks like I can only add additional cflags_cc/cflags_c/asmflags/etc flags and not remove already globally defined ones. What's the best option to remove -mbranch-protection without disabling it globally for the base or any other third_party code?
Thanks