Change bool, and string properties to *bool, and *string for cc
am: 3c267ae0ae
Change-Id: I2f134d57d195abde19f07a15cfb06afb49ebe671
diff --git a/soong/clangprebuilts.go b/soong/clangprebuilts.go
index 042d3df..a5ac560 100644
--- a/soong/clangprebuilts.go
+++ b/soong/clangprebuilts.go
@@ -119,16 +119,16 @@
libDir, _ := getClangDirs(ctx)
type props struct {
- Srcs []string
+ Srcs []string
System_shared_libs []string
- Sanitize struct {
- Never bool
+ Sanitize struct {
+ Never *bool
}
Strip struct {
- None bool
+ None *bool
}
Pack_relocations *bool
- Stl *string
+ Stl *string
}
p := &props{}
@@ -137,8 +137,8 @@
p.Srcs = []string{path.Join(libDir, name+".so")}
p.System_shared_libs = []string{}
- p.Sanitize.Never = true
- p.Strip.None = true
+ p.Sanitize.Never = proptools.BoolPtr(true)
+ p.Strip.None = proptools.BoolPtr(true)
disable := false
p.Pack_relocations = &disable
none := "none"
@@ -156,7 +156,7 @@
name := strings.Replace(ctx.ModuleName(), "prebuilt_", "", 1)
p := &props{}
- p.Srcs = []string{path.Join(libDir, name + ".a")}
+ p.Srcs = []string{path.Join(libDir, name+".a")}
ctx.AppendProperties(p)
}