diff options
author | 2023-02-09 19:01:31 +0000 | |
---|---|---|
committer | 2023-02-09 19:01:31 +0000 | |
commit | e22f384f3c09a1f78eb6b5583fbec7cde5281357 (patch) | |
tree | 3598b9e3aedae59f49c0cbd93ccd4845e1072fde /cc/lto_test.go | |
parent | bc6dc9f546665842727abd0d4027877531ab8b11 (diff) |
Fix test so it works on mac
Bug: 261733821
Test: The change is a test
Change-Id: I5cc15f642260b34d54840921941e6e56ef75d561
Diffstat (limited to 'cc/lto_test.go')
-rw-r--r-- | cc/lto_test.go | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/cc/lto_test.go b/cc/lto_test.go index ff2eddcf9..cee5aa3bc 100644 --- a/cc/lto_test.go +++ b/cc/lto_test.go @@ -185,12 +185,11 @@ func TestLtoDisabledButEnabledForArch(t *testing.T) { cc_library { name: "libfoo", srcs: ["foo.c"], - host_supported:true, lto: { never: true, }, target: { - android: { + android_arm: { lto: { never: false, thin: true, @@ -202,8 +201,8 @@ func TestLtoDisabledButEnabledForArch(t *testing.T) { prepareForCcTest, ).RunTestWithBp(t, bp) - libFooWithLto := result.ModuleForTests("libfoo", "android_arm64_armv8-a_shared").Rule("ld") - libFooWithoutLto := result.ModuleForTests("libfoo", "linux_glibc_x86_64_shared").Rule("ld") + libFooWithLto := result.ModuleForTests("libfoo", "android_arm_armv7-a-neon_shared").Rule("ld") + libFooWithoutLto := result.ModuleForTests("libfoo", "android_arm64_armv8-a_shared").Rule("ld") android.AssertStringDoesContain(t, "missing flag for LTO in variant that expects it", libFooWithLto.Args["ldFlags"], "-flto=thin") |