check-llvm: Tweak the feature "timestamps" for autoconf.
authorNAKAMURA Takumi <geek4civic@gmail.com>
Mon, 21 Dec 2015 08:46:12 +0000 (08:46 +0000)
committerNAKAMURA Takumi <geek4civic@gmail.com>
Mon, 21 Dec 2015 08:46:12 +0000 (08:46 +0000)
Note, ENABLE_TIMESTAMPS is either 1 or 0 in Makefile.config.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@256138 91177308-0d34-0410-b5e6-96231b3b80d8

test/Makefile
test/lit.cfg

index 15843853b0147d83ac5b45d8462e335d019a5a66..03194520caa259b94c1d84ff5a6acd0666365a48 100644 (file)
@@ -148,6 +148,7 @@ lit.site.cfg: FORCE
        @$(ECHOPATH) s=@HAVE_LIBZ@=$(HAVE_LIBZ)=g >> lit.tmp
        @$(ECHOPATH) s=@HAVE_DIA_SDK@=0=g >> lit.tmp
        @$(ECHOPATH) s=@ENABLE_EXAMPLES@=$(BUILD_EXAMPLES)=g >> lit.tmp
+       @$(ECHOPATH) s=@ENABLE_TIMESTAMPS@=$(ENABLE_TIMESTAMPS)=g >> lit.tmp
        @sed -f lit.tmp $(PROJ_SRC_DIR)/lit.site.cfg.in > $@
        @-rm -f lit.tmp
 
index 3fb94e43f72bb1e88c314abd16fe16ac304ba671..7a39ad3e3ece13f9baccff6167fd8e8cbb82f5cc 100644 (file)
@@ -464,7 +464,7 @@ if not re.match(r'^x86_64.*-(mingw32|windows-gnu|win32)', config.target_triple):
     config.available_features.add('debug_frame')
 
 # Check if we are embedding timestamps.
-if config.enable_timestamps:
+if config.enable_timestamps == '1':
     config.available_features.add('timestamps')
 
 # Check if we should use gmalloc.