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

Commit 921220e7 authored by Peter Collingbourne's avatar Peter Collingbourne Committed by android-build-merger
Browse files

Merge "Remove workarounds for old compiler versions." am: 1b781e52 am: 98e6f7e4

am: c83efac0

Change-Id: If5d7ce1de76324aa7e907f54cb2c6cb20edaac56
parents 11cdb320 c83efac0
Loading
Loading
Loading
Loading
+2 −10
Original line number Diff line number Diff line
@@ -50,12 +50,7 @@ var (

	intOverflowCflags = []string{"-fsanitize-blacklist=build/soong/cc/config/integer_overflow_blacklist.txt"}

	// Pass -Xclang before -fsanitize-minimal-runtime to work around a driver
	// check which rejects -fsanitize-minimal-runtime together with
	// -fsanitize=shadow-call-stack even though this combination of flags
	// is valid.
	// TODO(pcc): Remove the -Xclang once LLVM r346526 is rolled into the compiler.
	minimalRuntimeFlags = []string{"-Xclang", "-fsanitize-minimal-runtime", "-fno-sanitize-trap=integer,undefined",
	minimalRuntimeFlags = []string{"-fsanitize-minimal-runtime", "-fno-sanitize-trap=integer,undefined",
		"-fno-sanitize-recover=integer,undefined"}
	hwasanGlobalOptions = []string{"heap_history_size=1023,stack_history_size=512"}
)
@@ -312,10 +307,7 @@ func (sanitize *sanitize) begin(ctx BaseModuleContext) {
	}

	// SCS is only implemented on AArch64.
	// We also disable SCS if ASAN, TSAN or HWASAN are enabled because Clang considers
	// them to be incompatible, although they are in fact compatible.
	// TODO(pcc): Remove these checks once r347282 is rolled into the compiler.
	if ctx.Arch().ArchType != android.Arm64 || Bool(s.Address) || Bool(s.Thread) || Bool(s.Hwaddress) {
	if ctx.Arch().ArchType != android.Arm64 {
		s.Scs = nil
	}