summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNAKAMURA Takumi <geek4civic@gmail.com>2015-12-21 08:46:12 +0000
committerNAKAMURA Takumi <geek4civic@gmail.com>2015-12-21 08:46:12 +0000
commit59e6e921b274addf5ca1c042991f4443629cc411 (patch)
tree5049bed6cb238b6c9f579913741a650e08334e4c
parent827bc7fe53daee3885a03533195c7b33b21e0f88 (diff)
check-llvm: Tweak the feature "timestamps" for autoconf.
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
-rw-r--r--test/Makefile1
-rw-r--r--test/lit.cfg2
2 files changed, 2 insertions, 1 deletions
diff --git a/test/Makefile b/test/Makefile
index 15843853b01..03194520caa 100644
--- a/test/Makefile
+++ b/test/Makefile
@@ -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
diff --git a/test/lit.cfg b/test/lit.cfg
index 3fb94e43f72..7a39ad3e3ec 100644
--- a/test/lit.cfg
+++ b/test/lit.cfg
@@ -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.