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

Commit b3769fcd authored by Yi Kong's avatar Yi Kong Committed by Gerrit Code Review
Browse files

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

parents 2dbf71fe 12bebf95
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -199,7 +199,10 @@ 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(flags.Local.CFlags, "-O0", "-g")
		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")

		switch ctx.Os() {
		case android.Windows: