[PATCH] [libcxx] Add logic to probe compiler in tests.

Eric Fiselier eric at efcs.ca
Mon Nov 24 18:54:13 PST 2014


Hi mclow.lists, danalbert, jroelofs,

This patch probes the cxx compiler used during testing by getting it to dump its predefined macros. Based on the value of these macros the compiler name and compiler name + version are added to the available features.

There are three compiler names:
- `clang`
- `apple-clang`
- `gcc`.

The available features added are equivalent to:
- `'%s' % compiler_name`
- `'%s-%s.%s' % compiler_name, major_version, minor_version`

This information can be used to XFAIL tests on different compilers / versions.

http://reviews.llvm.org/D6399

Files:
  test/lit.cfg
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D6399.16594.patch
Type: text/x-patch
Size: 2389 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20141125/8290aa52/attachment.bin>


More information about the cfe-commits mailing list