mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-09 11:25:55 +00:00
Teach lit.cfg to recognize -windows-gnu in addition to -mingw32.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@224421 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -176,7 +176,7 @@ lli = 'lli'
|
|||||||
# we don't support COFF in MCJIT well enough for the tests, force ELF format on
|
# we don't support COFF in MCJIT well enough for the tests, force ELF format on
|
||||||
# Windows. FIXME: the process target triple should be used here, but this is
|
# Windows. FIXME: the process target triple should be used here, but this is
|
||||||
# difficult to obtain on Windows.
|
# difficult to obtain on Windows.
|
||||||
if re.search(r'cygwin|mingw32|win32', config.host_triple):
|
if re.search(r'cygwin|mingw32|windows-gnu|win32', config.host_triple):
|
||||||
lli += ' -mtriple='+config.host_triple+'-elf'
|
lli += ' -mtriple='+config.host_triple+'-elf'
|
||||||
config.substitutions.append( ('%lli', lli ) )
|
config.substitutions.append( ('%lli', lli ) )
|
||||||
|
|
||||||
@@ -309,7 +309,7 @@ else:
|
|||||||
|
|
||||||
# Direct object generation
|
# Direct object generation
|
||||||
# Suppress x86_64-mingw32 while investigating since r219108.
|
# Suppress x86_64-mingw32 while investigating since r219108.
|
||||||
if not 'hexagon' in config.target_triple and not re.match(r'^x86_64.*-(mingw32|win32)', config.target_triple):
|
if not 'hexagon' in config.target_triple and not re.match(r'^x86_64.*-(mingw32|windows-gnu|win32)', config.target_triple):
|
||||||
config.available_features.add("object-emission")
|
config.available_features.add("object-emission")
|
||||||
|
|
||||||
if config.have_zlib == "1":
|
if config.have_zlib == "1":
|
||||||
@@ -384,7 +384,7 @@ if 'darwin' == sys.platform:
|
|||||||
sysctl_cmd.wait()
|
sysctl_cmd.wait()
|
||||||
|
|
||||||
# .debug_frame is not emitted for targeting Windows x64.
|
# .debug_frame is not emitted for targeting Windows x64.
|
||||||
if not re.match(r'^x86_64.*-(mingw32|win32)', config.target_triple):
|
if not re.match(r'^x86_64.*-(mingw32|windows-gnu|win32)', config.target_triple):
|
||||||
config.available_features.add('debug_frame')
|
config.available_features.add('debug_frame')
|
||||||
|
|
||||||
# Check if we should use gmalloc.
|
# Check if we should use gmalloc.
|
||||||
|
Reference in New Issue
Block a user