Create embedcfg directory before writing the file

Bug: 302718225
Test: rm -rf out/ && m out/host/linux-x86/bin/go/soong-cc/pkg/android/soong/cc.a
Change-Id: I206f4e0f83fae6a8c6b69c648d23a8c6d1f51477
This commit is contained in:
Tomasz Wasilczyk 2024-05-09 07:27:58 -07:00
parent ca5ffdd3ce
commit 2fbe882aa8

View file

@ -584,6 +584,7 @@ func generateEmbedcfgFile(files []string, srcDir string, embedcfgFile string) {
panic(err)
}
os.MkdirAll(filepath.Dir(embedcfgFile), os.ModePerm)
os.WriteFile(embedcfgFile, []byte(embedcfgData), 0644)
}