Skip to content

Commit

Permalink
Fix clean_cache assertion.
Browse files Browse the repository at this point in the history
  • Loading branch information
maleadt committed Aug 16, 2017
1 parent 851b56a commit b92664a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/compile.jl
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,8 @@ $code
end

function clean_cache()
@assert isdir(builddir)
rm(builddir; force=true, recursive=true)
if ispath(builddir)
@assert isdir(builddir)
rm(builddir; recursive=true)
end
end

0 comments on commit b92664a

Please sign in to comment.