summaryrefslogtreecommitdiffstats
path: root/llvm/test
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
commit8c6c95ad81088b7b04677eb647c5a58af9467f12 (patch)
tree7a9e9849dac5999d188f2e6614ddfc84f80af875 /llvm/test
parent18663f8787de1862ccc032c767dbfc84b33c60c4 (diff)
downloadbcm5719-llvm-8c6c95ad81088b7b04677eb647c5a58af9467f12.tar.gz
bcm5719-llvm-8c6c95ad81088b7b04677eb647c5a58af9467f12.zip
check-llvm: Tweak the feature "timestamps" for autoconf.
Note, ENABLE_TIMESTAMPS is either 1 or 0 in Makefile.config. llvm-svn: 256138
Diffstat (limited to 'llvm/test')
-rw-r--r--llvm/test/Makefile1
-rw-r--r--llvm/test/lit.cfg2
2 files changed, 2 insertions, 1 deletions
diff --git a/llvm/test/Makefile b/llvm/test/Makefile
index 15843853b01..03194520caa 100644
--- a/llvm/test/Makefile
+++ b/llvm/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/llvm/test/lit.cfg b/llvm/test/lit.cfg
index 3fb94e43f72..7a39ad3e3ec 100644
--- a/llvm/test/lit.cfg
+++ b/llvm/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.
OpenPOWER on IntegriCloud