From b88279f3b8269b424b40eb75063a0b09d275adb4 Mon Sep 17 00:00:00 2001 From: Liana Kazanova Date: Mon, 15 Jul 2024 18:45:23 +0000 Subject: [PATCH] Revert "Switch host native tests to -Og" Revert submission 2695387-host-tests-Og Reason for revert: Droidmonitor triggered revert due to build breakage in b/353353713. Will be verifying through ABTD before submission. Reverted changes: /q/submissionid:2695387-host-tests-Og Change-Id: Ia8c75f9476f52dfce959c424bdf6b483bdf95c9f --- cc/test.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/cc/test.go b/cc/test.go index 007932eb5..a96af31bb 100644 --- a/cc/test.go +++ b/cc/test.go @@ -277,10 +277,7 @@ func (test *testDecorator) linkerFlags(ctx ModuleContext, flags Flags) Flags { flags.Local.CFlags = append(flags.Local.CFlags, "-DGTEST_HAS_STD_STRING") if ctx.Host() { - flags.Local.CFlags = append([]string{"-Og", "-g"}, flags.Local.CFlags...) - - // Turn off unused-result warning since it is not important for tests. - flags.Local.CFlags = append(flags.Local.CFlags, "-Wno-error=unused-result") + flags.Local.CFlags = append(flags.Local.CFlags, "-O0", "-g") switch ctx.Os() { case android.Windows: