Skip to content

Commit

Permalink
When Compiling serialize seperately per julia version (#315)
Browse files Browse the repository at this point in the history
Co-authored-by: Curtis Vogt <curtis.vogt@gmail.com>
  • Loading branch information
oxinabox and omus authored Dec 9, 2020
1 parent a314759 commit 53d02f9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/tzdata/TZData.jl
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ end

const ARCHIVE_DIR = joinpath(DEPS_DIR, "tzarchive")
const TZ_SOURCE_DIR = joinpath(DEPS_DIR, "tzsource")
const COMPILED_DIR = joinpath(DEPS_DIR, "compiled")
const COMPILED_DIR = joinpath(DEPS_DIR, "compiled", string(VERSION))

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

Expand Down
6 changes: 3 additions & 3 deletions src/tzdata/build.jl
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,9 @@ function build(
end

function build(version::AbstractString=tzdata_version())
isdir(ARCHIVE_DIR) || mkdir(ARCHIVE_DIR)
isdir(TZ_SOURCE_DIR) || mkdir(TZ_SOURCE_DIR)
isdir(COMPILED_DIR) || mkdir(COMPILED_DIR)
isdir(ARCHIVE_DIR) || mkpath(ARCHIVE_DIR)
isdir(TZ_SOURCE_DIR) || mkpath(TZ_SOURCE_DIR)
isdir(COMPILED_DIR) || mkpath(COMPILED_DIR)

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

0 comments on commit 53d02f9

Please sign in to comment.