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:
committed by
Priyanka Advani
parent
12bebf9567
commit
b88279f3b8
@@ -277,10 +277,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