Merge "Revert "Switch host native tests to -Og"" into main
This commit is contained in:
@@ -199,10 +199,7 @@ func (test *testDecorator) linkerFlags(ctx ModuleContext, flags Flags) Flags {
|
|||||||
|
|
||||||
flags.Local.CFlags = append(flags.Local.CFlags, "-DGTEST_HAS_STD_STRING")
|
flags.Local.CFlags = append(flags.Local.CFlags, "-DGTEST_HAS_STD_STRING")
|
||||||
if ctx.Host() {
|
if ctx.Host() {
|
||||||
flags.Local.CFlags = append([]string{"-Og", "-g"}, flags.Local.CFlags...)
|
flags.Local.CFlags = append(flags.Local.CFlags, "-O0", "-g")
|
||||||
|
|
||||||
// Turn off unused-result warning since it is not important for tests.
|
|
||||||
flags.Local.CFlags = append(flags.Local.CFlags, "-Wno-error=unused-result")
|
|
||||||
|
|
||||||
switch ctx.Os() {
|
switch ctx.Os() {
|
||||||
case android.Windows:
|
case android.Windows:
|
||||||
|
Reference in New Issue
Block a user