Merge "Update compdb to put full path to compiler"
am: 4087dd660f
Change-Id: I9bc32323ed59d55922a8555556f1f9c2807b48de
This commit is contained in:
commit
1a90a8a5c0
|
@ -170,14 +170,14 @@ func generateCompdbProject(compiledModule CompiledInterface, ctx android.Singlet
|
|||
return
|
||||
}
|
||||
|
||||
pathToCC, err := ctx.Eval(pctx, "${config.ClangBin}/")
|
||||
rootDir := getCompdbAndroidSrcRootDirectory(ctx)
|
||||
pathToCC, err := ctx.Eval(pctx, rootDir+"/${config.ClangBin}/")
|
||||
ccPath := "/bin/false"
|
||||
cxxPath := "/bin/false"
|
||||
if err == nil {
|
||||
ccPath = pathToCC + "clang"
|
||||
cxxPath = pathToCC + "clang++"
|
||||
}
|
||||
rootDir := getCompdbAndroidSrcRootDirectory(ctx)
|
||||
for _, src := range srcs {
|
||||
if _, ok := builds[src.String()]; !ok {
|
||||
builds[src.String()] = compDbEntry{
|
||||
|
|
Loading…
Reference in New Issue