aboutsummaryrefslogtreecommitdiff
path: root/android/raw_files.go
diff options
context:
space:
mode:
Diffstat (limited to 'android/raw_files.go')
-rw-r--r--android/raw_files.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/android/raw_files.go b/android/raw_files.go
index ebba4d145..128b6feb0 100644
--- a/android/raw_files.go
+++ b/android/raw_files.go
@@ -271,7 +271,7 @@ func (rawFilesSingleton) GenerateBuildActions(ctx SingletonContext) {
// Checking that the path matches allows changing the structure of the raw directory, for example to increase
// the sharding.
rawFileInfo, written := rawFileSet.Load(key)
- if !written || rawFileInfo.relPath != relPath {
+ if !ctx.GetIncrementalAnalysis() && (!written || rawFileInfo.relPath != relPath) {
os.Remove(path)
}
return nil