Add builtins and minimal runtime as dependencies instead of flags

Use dependencies instead of libflags to link libclang_rt.builtins
and libclang_rt.ubsan_minimal.

Test: m checkbuild
Change-Id: I403cee0fb8cc21c347b42d8f8a3c20d6f43337a4
This commit is contained in:
Colin Cross
2022-02-10 10:34:19 -08:00
parent 72ee67659d
commit 06c80eb851
3 changed files with 60 additions and 29 deletions

View File

@@ -37,6 +37,8 @@ var prepareForShTest = android.GroupFixturePreparers(
//
// deprecated
func testShBinary(t *testing.T, bp string) (*android.TestContext, android.Config) {
bp = bp + cc.GatherRequiredDepsForTest(android.Android)
result := prepareForShTest.RunTestWithBp(t, bp)
return result.TestContext, result.Config