Skip to content

Commit

Permalink
Parse semantic version string correctly (JuliaLang#49018)
Browse files Browse the repository at this point in the history
  • Loading branch information
staticfloat authored and RAI CI (GitHub Action Automation) committed Nov 1, 2023
1 parent 05dacf5 commit bc74806
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ $(BUILDDIR)/julia_version.h: $(JULIAHOME)/VERSION
@echo "#ifndef JL_VERSION_H" >> $@.$(JULIA_BUILD_MODE).tmp
@echo "#define JL_VERSION_H" >> $@.$(JULIA_BUILD_MODE).tmp
@echo "#define JULIA_VERSION_STRING" \"$(JULIA_VERSION)\" >> $@.$(JULIA_BUILD_MODE).tmp
@echo $(JULIA_VERSION) | awk 'BEGIN {FS="[.,-]"} \
@echo $(JULIA_VERSION) | awk 'BEGIN {FS="[.,+-]"} \
{print "#define JULIA_VERSION_MAJOR " $$1 "\n" \
"#define JULIA_VERSION_MINOR " $$2 "\n" \
"#define JULIA_VERSION_PATCH " $$3 ; \
Expand Down

0 comments on commit bc74806

Please sign in to comment.