Skip to content

Commit 53d02f9

Browse files
oxinaboxomus
andauthored
When Compiling serialize seperately per julia version (#315)
Co-authored-by: Curtis Vogt <[email protected]>
1 parent a314759 commit 53d02f9

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/tzdata/TZData.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ end
1616

1717
const ARCHIVE_DIR = joinpath(DEPS_DIR, "tzarchive")
1818
const TZ_SOURCE_DIR = joinpath(DEPS_DIR, "tzsource")
19-
const COMPILED_DIR = joinpath(DEPS_DIR, "compiled")
19+
const COMPILED_DIR = joinpath(DEPS_DIR, "compiled", string(VERSION))
2020

2121
const ARTIFACT_TOML = joinpath(@__DIR__, "..", "..", "Artifacts.toml")
2222

src/tzdata/build.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,9 +102,9 @@ function build(
102102
end
103103

104104
function build(version::AbstractString=tzdata_version())
105-
isdir(ARCHIVE_DIR) || mkdir(ARCHIVE_DIR)
106-
isdir(TZ_SOURCE_DIR) || mkdir(TZ_SOURCE_DIR)
107-
isdir(COMPILED_DIR) || mkdir(COMPILED_DIR)
105+
isdir(ARCHIVE_DIR) || mkpath(ARCHIVE_DIR)
106+
isdir(TZ_SOURCE_DIR) || mkpath(TZ_SOURCE_DIR)
107+
isdir(COMPILED_DIR) || mkpath(COMPILED_DIR)
108108

109109
# Empty the compile directory in case to handle different versions not overriding all
110110
# files.

0 commit comments

Comments
 (0)