Escape cc ldflags in bp2build conversion
Bug: 217757720 Test: bp2build.sh Change-Id: I704acfb01527f15ff762afeaaf4e0e328e4737d8
This commit is contained in:
@@ -2409,3 +2409,18 @@ cc_library {
|
||||
},
|
||||
)
|
||||
}
|
||||
|
||||
func TestCcLibraryEscapeLdflags(t *testing.T) {
|
||||
runCcLibraryTestCase(t, bp2buildTestCase{
|
||||
moduleTypeUnderTest: "cc_library",
|
||||
moduleTypeUnderTestFactory: cc.LibraryFactory,
|
||||
blueprint: soongCcProtoPreamble + `cc_library {
|
||||
name: "foo",
|
||||
ldflags: ["-Wl,--rpath,${ORIGIN}"],
|
||||
include_build_directory: false,
|
||||
}`,
|
||||
expectedBazelTargets: makeCcLibraryTargets("foo", attrNameToString{
|
||||
"linkopts": `["-Wl,--rpath,$${ORIGIN}"]`,
|
||||
}),
|
||||
})
|
||||
}
|
||||
|
Reference in New Issue
Block a user