[libcxx] r174722 - [tests] Add back stdc macros I accidentally refactored out.

Daniel Dunbar daniel at zuster.org
Fri Feb 8 09:41:28 PST 2013


Author: ddunbar
Date: Fri Feb  8 11:41:28 2013
New Revision: 174722

URL: http://llvm.org/viewvc/llvm-project?rev=174722&view=rev
Log:
[tests] Add back stdc macros I accidentally refactored out.
 - Patch by Michael van der Westhuizen:
--
r174404 accidentally removed stdc format, limit and constant macros from the Linux test runner logic.  This small patch re-adds the macros.

Making this change fixes the following tests on Linux:
 - depr/depr.c.headers/inttypes_h.pass.cpp
 - depr/depr.c.headers/stdint_h.pass.cpp
 - input.output/file.streams/c.files/cinttypes.pass.cpp
 - language.support/cstdint/cstdint.syn/cstdint.pass.cpp
--

Modified:
    libcxx/trunk/test/lit.cfg

Modified: libcxx/trunk/test/lit.cfg
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/lit.cfg?rev=174722&r1=174721&r2=174722&view=diff
==============================================================================
--- libcxx/trunk/test/lit.cfg (original)
+++ libcxx/trunk/test/lit.cfg Fri Feb  8 11:41:28 2013
@@ -276,6 +276,7 @@ elif sys.platform == 'linux2':
     libraries += ['-lsupc++', '-lgcc_eh', '-lc', '-lm', '-lpthread', '-lrt', '-lgcc_s']
     if not use_system_lib:
         libraries += ['-Wl,-R', libcxx_obj_root + '/lib']
+    compile_flags += ['-D__STDC_FORMAT_MACROS', '-D__STDC_LIMIT_MACROS', '-D__STDC_CONSTANT_MACROS']
 else:
     lit.fatal("unrecognized system")
 





More information about the cfe-commits mailing list