Merge "Revert "Switch host native tests to -Og"" into main

This commit is contained in:
Priyanka Advani
2024-07-15 23:06:52 +00:00
committed by Gerrit Code Review

View File

@@ -199,10 +199,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: