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
This commit is contained in:
Liana Kazanova
2024-07-15 18:45:23 +00:00
committed by Priyanka Advani
parent 12bebf9567
commit b88279f3b8

View File

@@ -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: