Propagate the version to the executable code.

This commit is contained in:
Vassil Vassilev 2014-05-09 15:16:50 +02:00 committed by sftnight
parent 5bea5d34ec
commit 7ce34cdf3c
2 changed files with 4 additions and 0 deletions

View File

@ -60,6 +60,7 @@ CXX.Flags += -fno-strict-aliasing
# Determine cling's version:
CLING_VERSION=$(shell cat "VERSION")
CPP.Flags += -DCLING_VERSION='"$(CLING_VERSION) "'
###
# Cling Top Level specific stuff.

View File

@ -160,6 +160,8 @@ $(CLINGEXEO): CLINGEXCCXXFLAGS := -fexceptions
else
endif
CLING_VERSION=$(shell cat "$(CLINGDIR)/VERSION")
$(CLINGEXCEPO): CLINGEXCCXXFLAGS := -fexceptions
$(CLINGETC) : $(LLVMLIB)
$(CLINGO) : $(CLINGETC)
@ -167,4 +169,5 @@ $(call stripsrc,$(MODDIR)/lib/Interpreter/CIFactory.o): $(CLINGCOMPDH)
$(call stripsrc,$(MODDIR)/lib/Interpreter/CIFactory.o): CLINGCXXFLAGS += -I$(dir $(CLINGCOMPDH))
$(call stripsrc,$(MODDIR)/lib/Interpreter/Interpreter.o): $(CLINGCOMPDH)
$(call stripsrc,$(MODDIR)/lib/Interpreter/Interpreter.o): CLINGCXXFLAGS += -I$(dir $(CLINGCOMPDH))
$(call stripsrc,$(MODDIR)/lib/Interpreter/Interpreter.o): CLINGCXXFLAGS += -DCLING_VERSION='"$(CLING_VERSION)"'