Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit afe46715 authored by Yi Kong's avatar Yi Kong Committed by Android (Google) Code Review
Browse files

Merge "Add -faddrsig to ClangExtraCflags" into stage-aosp-master

parents 98e6f7e4 7e8b47b3
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -97,6 +97,10 @@ func init() {
	pctx.StaticVariable("ClangExtraCflags", strings.Join([]string{
		"-D__compiler_offsetof=__builtin_offsetof",

		// Emit address-significance table which allows linker to perform safe ICF. Clang does
		// not emit the table by default on Android since NDK still uses GNU binutils.
		"-faddrsig",

		// Make implicit fallthrough an error in the future.
		"-Wimplicit-fallthrough",
		"-Wno-error=implicit-fallthrough",