mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-05 02:07:56 +00:00
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
This commit is contained in:
parent
fc1b5e7959
commit
3b6edaae54
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user