Handle no_libcrt in bp2build.
Test: ci/bp2build.sh Bug: 187928307 Change-Id: Ib80c4318169652b322e5d878c8784679e42f87dd
This commit is contained in:
12
cc/linker.go
12
cc/linker.go
@@ -200,6 +200,18 @@ type BaseLinkerProperties struct {
|
||||
Exclude_shared_libs []string `android:"arch_variant"`
|
||||
}
|
||||
|
||||
func invertBoolPtr(value *bool) *bool {
|
||||
if value == nil {
|
||||
return nil
|
||||
}
|
||||
ret := !(*value)
|
||||
return &ret
|
||||
}
|
||||
|
||||
func (blp *BaseLinkerProperties) libCrt() *bool {
|
||||
return invertBoolPtr(blp.No_libcrt)
|
||||
}
|
||||
|
||||
func NewBaseLinker(sanitize *sanitize) *baseLinker {
|
||||
return &baseLinker{sanitize: sanitize}
|
||||
}
|
||||
|
Reference in New Issue
Block a user