diff --git a/llvm/lib/Support/Makefile b/llvm/lib/Support/Makefile index 4a2185d589e5..39426aaaacee 100644 --- a/llvm/lib/Support/Makefile +++ b/llvm/lib/Support/Makefile @@ -17,3 +17,7 @@ include $(LEVEL)/Makefile.common CompileCommonOpts := $(filter-out -pedantic,$(CompileCommonOpts)) CompileCommonOpts := $(filter-out -Wno-long-long,$(CompileCommonOpts)) + +ifdef LLVM_VERSION_INFO +CompileCommonOpts += -DLLVM_VERSION_INFO='"$(LLVM_VERSION_INFO)"' +endif