Skip to content

Commit 613b46a

Browse files
Bikappaper1234
authored and
Luca Bianconi
committed
Update legacy/builder/phases/core_builder.go
Co-authored-by: per1234 <[email protected]>
1 parent ead9c44 commit 613b46a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Diff for: legacy/builder/phases/core_builder.go

+3
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,9 @@ func compileCore(ctx *types.Context, buildPath *paths.Path, buildCachePath *path
121121

122122
// archive core.a
123123
if targetArchivedCore != nil && !ctx.OnlyUpdateCompilationDatabase {
124+
if err := targetArchivedCore.Parent().Mkdir(); err != nil {
125+
return nil, nil, fmt.Errorf(tr("creating core cache folder: %s", err))
126+
}
124127
err := archiveFile.CopyTo(targetArchivedCore)
125128
buildcache.GetOrCreate(targetArchivedCore.Parent().Parent(), targetArchivedCore.Parent().Base())
126129
if ctx.Verbose {

0 commit comments

Comments
 (0)