diff options
Diffstat (limited to 'cc/compiler.go')
-rw-r--r-- | cc/compiler.go | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/cc/compiler.go b/cc/compiler.go index eb30767a..8afd1bd2 100644 --- a/cc/compiler.go +++ b/cc/compiler.go @@ -125,6 +125,9 @@ type BaseCompilerProperties struct { Exclude_srcs []string } } + + // Stores the original list of source files before being cleared by library reuse + OriginalSrcs []string `blueprint:"mutated"` } func NewBaseCompiler() *baseCompiler { @@ -427,6 +430,11 @@ func (compiler *baseCompiler) hasSrcExt(ext string) bool { return true } } + for _, src := range compiler.Properties.OriginalSrcs { + if filepath.Ext(src) == ext { + return true + } + } return false } |