diff options
author | David Majnemer <david.majnemer@gmail.com> | 2015-12-21 08:03:07 +0000 |
---|---|---|
committer | David Majnemer <david.majnemer@gmail.com> | 2015-12-21 08:03:07 +0000 |
commit | 827bc7fe53daee3885a03533195c7b33b21e0f88 (patch) | |
tree | 06b71d91b212db8d840be04c378b4112490b3320 /test/lit.cfg | |
parent | d644801757bb1e2ad6a7a9715b3e57288c197ada (diff) |
[MC, COFF] Unbreak support for COFF timestamps
Support for COFF timestamps was unintentionally broken in r246905 when
it was conditionally available depending on whether or not LLVM was
configured with LLVM_ENABLE_TIMESTAMPS. However, Config/config.h was
never included which essentially broke the feature. Due to lax testing,
the breakage was never identified until we observed strange failures
during incremental links of Chromium.
This issue is resolved by simply including Config/config.h in
WinCOFFObjectWriter and teaching lit that the MC/COFF/timestamp.s test
is conditionally supported depending on LLVM_ENABLE_TIMESTAMPS. With
this in place, we can strengthen the test to ensure that it will not
accidentally get broken in the future.
This fixes PR25891.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@256137 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/lit.cfg')
-rw-r--r-- | test/lit.cfg | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/lit.cfg b/test/lit.cfg index 9fb9fb2b4de..3fb94e43f72 100644 --- a/test/lit.cfg +++ b/test/lit.cfg @@ -463,6 +463,10 @@ if platform.system() in ['Windows'] and re.match(r'.*-win32$', config.target_tri 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: + config.available_features.add('timestamps') + # Check if we should use gmalloc. use_gmalloc_str = lit_config.params.get('use_gmalloc', None) if use_gmalloc_str is not None: |