Merge "Fix double space in include argument"
am: a112b514e7
Change-Id: Id602abf9429649b53db37bdb73a8af318628a1f8
This commit is contained in:
commit
9519ec27a0
|
@ -26,7 +26,7 @@ func (stub *kernelHeadersDecorator) link(ctx ModuleContext, flags Flags, deps Pa
|
|||
if ctx.Device() {
|
||||
f := &stub.libraryDecorator.flagExporter
|
||||
for _, dir := range ctx.DeviceConfig().DeviceKernelHeaderDirs() {
|
||||
f.flags = append(f.flags, "-isystem"+dir)
|
||||
f.flags = append(f.flags, "-isystem "+dir)
|
||||
}
|
||||
}
|
||||
return stub.libraryDecorator.linkStatic(ctx, flags, deps, objs)
|
||||
|
|
|
@ -144,17 +144,17 @@ func (stub *llndkStubDecorator) link(ctx ModuleContext, flags Flags, deps PathDe
|
|||
timestampFiles = append(timestampFiles, stub.processHeaders(ctx, dir, genHeaderOutDir))
|
||||
}
|
||||
|
||||
includePrefix := "-I "
|
||||
includePrefix := "-I"
|
||||
if Bool(stub.Properties.Export_headers_as_system) {
|
||||
includePrefix = "-isystem "
|
||||
}
|
||||
|
||||
stub.reexportFlags([]string{includePrefix + " " + genHeaderOutDir.String()})
|
||||
stub.reexportFlags([]string{includePrefix + genHeaderOutDir.String()})
|
||||
stub.reexportDeps(timestampFiles)
|
||||
}
|
||||
|
||||
if Bool(stub.Properties.Export_headers_as_system) {
|
||||
stub.exportIncludes(ctx, "-isystem")
|
||||
stub.exportIncludes(ctx, "-isystem ")
|
||||
stub.libraryDecorator.flagExporter.Properties.Export_include_dirs = []string{}
|
||||
}
|
||||
|
||||
|
|
|
@ -137,7 +137,7 @@ func (ndk *ndkPrebuiltStlLinker) link(ctx ModuleContext, flags Flags,
|
|||
ctx.ModuleErrorf("NDK prebuilt libraries must have an ndk_lib prefixed name")
|
||||
}
|
||||
|
||||
ndk.exportIncludes(ctx, "-isystem")
|
||||
ndk.exportIncludes(ctx, "-isystem ")
|
||||
|
||||
libName := strings.TrimPrefix(ctx.ModuleName(), "ndk_")
|
||||
libExt := flags.Toolchain.ShlibSuffix()
|
||||
|
|
Loading…
Reference in New Issue