From e00225bf147a6e19a4d2717c7130d4962a9015da Mon Sep 17 00:00:00 2001 From: NAKAMURA Takumi Date: Sat, 26 Oct 2013 02:50:20 +0000 Subject: [PATCH] llvm/test/lit.cfg: Tighten conditions to enable 'native'. I saw the case that 'native' was mis-enabled when x86_64-pc-win32 on x86_64-linux. FIXME: Consider cases that target can be executed even if host_triple were different from target_triple. llvm-svn: 193459 --- llvm/test/lit.cfg | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/llvm/test/lit.cfg b/llvm/test/lit.cfg index 1b6fa54c5228..9ac7e7a5a235 100644 --- a/llvm/test/lit.cfg +++ b/llvm/test/lit.cfg @@ -297,7 +297,9 @@ if config.have_zlib == "1": config.available_features.add("zlib") # Native compilation: host arch == target arch -if config.host_arch in config.target_triple: +# FIXME: Consider cases that target can be executed +# even if host_triple were different from target_triple. +if config.host_triple == config.target_triple: config.available_features.add("native") # llc knows whether he is compiled with -DNDEBUG.