[llvm-branch-commits] [cfe-branch] r116514 - /cfe/branches/Apple/whitney-IB/ClangBNI.mk
Daniel Dunbar
daniel at zuster.org
Thu Oct 14 13:51:42 PDT 2010
Author: ddunbar
Date: Thu Oct 14 15:51:42 2010
New Revision: 116514
URL: http://llvm.org/viewvc/llvm-project?rev=116514&view=rev
Log:
Set LLVM_VERSION_INFO to bake some extra info into the version reported by libLTO.
Modified:
cfe/branches/Apple/whitney-IB/ClangBNI.mk
Modified: cfe/branches/Apple/whitney-IB/ClangBNI.mk
URL: http://llvm.org/viewvc/llvm-project/cfe/branches/Apple/whitney-IB/ClangBNI.mk?rev=116514&r1=116513&r2=116514&view=diff
==============================================================================
--- cfe/branches/Apple/whitney-IB/ClangBNI.mk (original)
+++ cfe/branches/Apple/whitney-IB/ClangBNI.mk Thu Oct 14 15:51:42 2010
@@ -205,6 +205,10 @@
# the sequencing monotonic.
Clang_Make_Variables += LLVM_LTO_VERSION_OFFSET=3000
+# Set extra compile options.
+Extra_Options := $(Clang_Extra_Options)
+Extra_Options += -DLLVM_VERSION_INFO='\"from Apple Clang $(Clang_Version) (build $(SourceVersion))\"'
+
# Set configure flags.
Common_Configure_Flags = \
--enable-targets=$(LLVM_Backends) \
@@ -216,9 +220,9 @@
--disable-bindings \
--disable-doxygen
Stage1_Configure_Flags = $(Common_Configure_Flags) \
- --with-extra-options="$(Clang_Extra_Options)"
+ --with-extra-options="$(Extra_Options)"
Configure_Flags = $(Common_Configure_Flags) \
- --with-extra-options="$(Clang_Extra_Options) $(Clang_Final_Extra_Options)"
+ --with-extra-options="$(Extra_Options) $(Clang_Final_Extra_Options)"
# Set up any additional Clang install targets.
Extra_Clang_Install_Targets :=
More information about the llvm-branch-commits
mailing list