From: NAKAMURA Takumi Date: Fri, 28 Aug 2015 23:33:17 +0000 (+0000) Subject: Revert r246350, "The host and default target triples do not need to match for "native"" X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=0fc1f9ed3f4f90e763c7a1f03a39bf4362a0b5dc;p=oota-llvm.git Revert r246350, "The host and default target triples do not need to match for "native"" Wrong assumption. Consider --host=x86_64-linux --target=(i686|x86_64)-win32. See also r193459. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@246352 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/lit.cfg b/test/lit.cfg index f0ed689e0ae..38a2ec20ec8 100644 --- a/test/lit.cfg +++ b/test/lit.cfg @@ -340,8 +340,11 @@ if config.have_zlib == "1": else: config.available_features.add("nozlib") -# Native compilation: host arch (native) backend built-in -if config.native_target in config.targets_to_build: +# Native compilation: host arch == target arch and native backend built-in +# FIXME: Consider cases that target can be executed +# even if host_triple were different from target_triple. +if (config.host_triple == config.target_triple and + config.native_target in config.targets_to_build): config.available_features.add("native") import subprocess