Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "OMFrontend"
uuid = "b10394b5-f439-4073-a0c5-e09cb00cf46c"
authors = ["John Tinnerholm <johti17@liu.se>", "Martin Sjölund <martin.sjolund@liu.se>", "Adrian Pop <adrian.pop@liu.se>"]
version = "4.0.0"
version = "4.0.1"

[deps]
ConstructionBase = "187b0558-2788-49d3-abe0-74a17ed4e7c9"
Expand Down
6 changes: 4 additions & 2 deletions src/API/cli.jl
Original file line number Diff line number Diff line change
Expand Up @@ -72,14 +72,16 @@ end
@inline _stderrPrint(msg::String)::Nothing = _writeFD(_STDERR_FD, msg)
@inline _stderrPrintln(msg::String)::Nothing = (_writeFD(_STDERR_FD, msg); _writeFD(_STDERR_FD, "\n"))

# Read the package version from Project.toml at module load. @__DIR__ is
# Read the package version from Project.toml when the package precompiles. @__DIR__ is
# baked at compile time, so this works in both regular and juliac binaries
# without calling Base.find_package (whose Project.toml-parsing path is
# itself unresolvable under --trim=safe).
# itself unresolvable under --trim=safe). Project.toml is a dependency of the
# precompile cache: a changed version line recompiles the package.
const _PACKAGE_VERSION = let
pfile = joinpath(@__DIR__, "..", "..", "Project.toml")
ver = "unknown"
if isfile(pfile)
include_dependency(pfile)
for line in eachline(pfile)
m = match(r"^version\s*=\s*\"([^\"]+)\"", line)
if m !== nothing
Expand Down
Loading
Loading