summaryrefslogtreecommitdiffstats
path: root/libcxx/utils
Commit message (Collapse)AuthorAgeFilesLines
* Remove BUILD file from google-benchmarkEric Fiselier2018-07-101-65/+0
| | | | llvm-svn: 336666
* Update google-benchark to trunkEric Fiselier2018-07-1066-729/+2671
| | | | llvm-svn: 336635
* Remove old workaround that is no longer neededEric Fiselier2018-07-041-3/+0
| | | | llvm-svn: 336297
* Fix libcxx tests after clang r334677.Richard Smith2018-06-171-3/+7
| | | | | | Feature test macro versions may have a trailing L. llvm-svn: 334917
* Avoid Clang error about throwing _LIBCPP_ASSERT in noexcept function.Eric Fiselier2018-03-221-5/+0
| | | | | | | | | | | | | This fixes a couple of tests which produced a warning that a 'throw' occurred in a noexcept function (by way of _LIBCPP_ASSERT). It does so by hiding the 'throw' across an opaque function boundary. This fix isn't ideal, since we still have _LIBCPP_ASSERT's in functions marked noexcept -- and this problem should be addressed in the future. However, throwing _LIBCPP_ASSERT is really only meant to allow testing of the assertions, and is not yet ready for general use. llvm-svn: 328265
* commit temporary workaround for new Clang exception warningEric Fiselier2018-03-221-0/+5
| | | | llvm-svn: 328186
* Allow passing additional compiler/linker flags for the testsAlexander Richardson2018-02-231-0/+6
| | | | | | | | | | | | | | | | | | | Summary: These flags can be specified using the CMake variables LIBCXX_TEST_LINKER_FLAGS and LIBCXX_TEST_COMPILER_FLAGS. When building the tests for CHERI I need to pass additional flags (such as -mabi=n64 or -mabi=purecap) to the compiler for our test configurations Reviewers: EricWF Reviewed By: EricWF Subscribers: christof, mgorny, cfe-commits Differential Revision: https://reviews.llvm.org/D42139 llvm-svn: 325914
* Fix test failure on compilers w/o deduction guidesEric Fiselier2018-02-151-1/+2
| | | | llvm-svn: 325205
* Update Google Benchmark libraryEric Fiselier2018-01-1868-2610/+4870
| | | | llvm-svn: 322812
* Fix nodiscard failure tests on compilers w/o -verify.Eric Fiselier2018-01-171-1/+12
| | | | | | | | | | | | | Previously .fail.cpp tests for nodiscard were run with -Wunused-result being a warning, not an error, when the compiler didn't support -verify. When -verify isn't enabled this change judiciously adds -Werror=unused-result when to only the failure tests containing the // expected-error string for nodiscard. As a drive-by change, this patch also adds a missing // UNSUPPORTED: c++2a to a test which was only supposed to run in C++ <= 11. llvm-svn: 322776
* [libcxx] Support the use of compiler-rt in lit testsPetr Hosek2018-01-081-1/+3
| | | | | | | | Don't link tests against libgcc when compiler-rt is being used. Differential Revision: https://reviews.llvm.org/D40513 llvm-svn: 322044
* Attempt to fix template depth test failures on older Clang versionsEric Fiselier2017-11-191-0/+3
| | | | llvm-svn: 318625
* Teach test suite about C++2a dialect flag.Eric Fiselier2017-11-071-2/+3
| | | | | | | | This patch teaches the test suite configuration about the -std=c++2a flag. And, since it's the newest dialect, change the test suite to choose it, if possible, by default. llvm-svn: 317611
* Change test suite to support c++17 dialect flag instead of c++1z.Eric Fiselier2017-11-071-3/+5
| | | | | | | | This patch changes the test suite to attempt and prefer -std=c++17 over -std=c++1z. It also fixes the REQUIRES and UNSUPPORTED lit markers to refer to c++17 over c++1z. llvm-svn: 317610
* [libc++] Support Microsoft ABI without vcruntime headersShoaib Meenai2017-10-091-0/+3
| | | | | | | | | | | | | | | | | The vcruntime headers are hairy and clash with both libc++ headers themselves and other libraries. libc++ normally deals with the clashes by deferring to the vcruntime headers and silencing its own definitions, but for clients which don't want to depend on vcruntime headers, it's desirable to support the opposite, i.e. have libc++ provide its own definitions. Certain operator new/delete replacement scenarios are not currently supported in this mode, which requires some tests to be marked XFAIL. The added documentation has more details. Differential Revision: https://reviews.llvm.org/D38522 llvm-svn: 315234
* [libc++] Add site config option for ABI macrosShoaib Meenai2017-10-041-1/+1
| | | | | | | | | | | | | | | | | Some ABI macros affect headers, so it's nice to have a site config option for them. Add a LIBCXX_ABI_DEFINES cmake macro to allow specifying a list of ABI macros to define in the site config. The primary design constraint (as discussed with Eric on IRC a while back) was to not have to repeat the ABI macro names in cmake, which only leaves a free-form cmake list as an option. A somewhat unfortunate consequence is that we can't verify that the ABI macros being defined actually exist, though we can at least perform some basic sanity checking, since all the ABI macros begin with _LIBCPP_ABI_. Differential Revision: https://reviews.llvm.org/D36719 llvm-svn: 314946
* Fix test suite misconfiguration on OS XEric Fiselier2017-10-031-2/+2
| | | | llvm-svn: 314755
* Improve test runner output for broken configurations.Eric Fiselier2017-10-022-6/+16
| | | | | | | | | | | | | Previously LIT would often fail while attempting to set up/configure the test compiler; normally when attempting to dump the builtin macros. This sort of failure provided no useful information about what went wrong with the compiler, making the actual issues hard --- if not impossible --- to debug easily. This patch changes the LIT configuration to report the failure explicitly, including the failed compile command and the stdout/stderr output. llvm-svn: 314735
* Use CMAKE_AR instead of the system default 'ar' for merging static librariesMartin Storsjo2017-09-131-3/+9
| | | | | | | | | | | | | | | Using the system default 'ar' might not be the right choice when cross compiling. Don't prepend the ar options by a dash, not all ar implementations support that (llvm-ar doesn't). Also pass the 's' option when creating the merged library, to create an index. Differential Revision: https://reviews.llvm.org/D37134 llvm-svn: 313122
* libcxx: fix merge_archives error variable nameMartell Malone2017-09-121-1/+1
| | | | | | Differential Revision: https://reviews.llvm.org/D37728 llvm-svn: 313084
* Handle object files named *.obj in merge_archives.pyMartin Storsjo2017-09-121-1/+1
| | | | | | Differential Revision: https://reviews.llvm.org/D37133 llvm-svn: 313072
* XFAIL tests on SLES11Brian Cain2017-09-081-2/+4
| | | | | | | XFAIL some failing tests for SLES11 (older glibc), also replace spaces in linux distro w/dashes. llvm-svn: 312774
* Fix issues with UBSAN test configuration.Eric Fiselier2017-07-101-4/+0
| | | | | | | | On Apple the test feature 'sanitizer-new-delete' was incorrectly getting added to the LIT feature set, which mistakenly caused tests to be disabled when using UBSAN (the feature is only needed with ASAN/MSAN/TSAN). llvm-svn: 307518
* Fix filesystem build on platforms with weird time_t types.Eric Fiselier2017-07-081-0/+1
| | | | | | | | | | | | | | 32-bit powerpc provides a 64 bit time_t type and older ppc64 systems provide time_t as a floating point type. This caused problems when building operations.cpp since operations.cpp contained compile time tests for conversions between time_t and filesystem time type. When these tests failed they caused the libc++ build to fail as well. This is unfortunate. This patch moves the tests out of the source file and into the test suite. It also expands the tests to allow testing of the weird time_t configurations on all platforms. llvm-svn: 307461
* cmath: Support clang's -fdelayed-template-parsingDuncan P. N. Exon Smith2017-07-071-0/+3
| | | | | | | | | | | r283051 added some functions to cmath (in namespace std) that have the same name as functions in math.h (in the global namespace). Clang's limited support for `-fdelayed-template-parsing` chokes on this. Rename the ones in `cmath` and their uses in `complex` and the test. rdar://problem/32848355 llvm-svn: 307357
* Suppress -Waligned-allocation-unavailable warning in libc++ test suiteEric Fiselier2017-07-051-0/+1
| | | | llvm-svn: 307218
* [lit/libcxx] Fix a remaining reference to lit.util.capture() in custom ↵David L. Jones2017-06-291-5/+6
| | | | | | | | | | | | | | | | | | | libcxx/Darwin code. Summary: This reference to lit.util.capture is functionally identical to subprocess.check_output, so this change switches to call the library routine directly. Reviewers: mzolotukhin, EricWF Reviewed By: mzolotukhin Subscribers: sanjoy, llvm-commits Differential Revision: https://reviews.llvm.org/D34841 llvm-svn: 306755
* remove incorrectly committed assertionEric Fiselier2017-06-151-1/+0
| | | | llvm-svn: 305447
* Add hack to get --param=enable_modules=true working with a __config_site headerEric Fiselier2017-06-151-3/+17
| | | | llvm-svn: 305446
* Define -DNOMINMAX when running the tests on WindowsEric Fiselier2017-05-311-1/+5
| | | | llvm-svn: 304372
* Disable the coroutines tests until Clang bumps __cpp_coroutines to reflect ↵Eric Fiselier2017-05-251-1/+9
| | | | | | recent changes llvm-svn: 303837
* Add <experimental/coroutine>Eric Fiselier2017-05-251-0/+5
| | | | | | | This patch adds the library portions of the coroutines PDTS, which should now be supported by Clang. llvm-svn: 303836
* [test] Add support for Objective-C++ testsErik Pilkington2017-05-193-4/+27
| | | | | | Differential revision: https://reviews.llvm.org/D33049 llvm-svn: 303466
* Workaround -W#warnings on Windows until the correct fixes can landEric Fiselier2017-05-101-0/+3
| | | | llvm-svn: 302743
* Clean up LIT failure output by not showing the entire environmentEric Fiselier2017-05-101-28/+3
| | | | llvm-svn: 302713
* Attempt to speculatively unbreak Apple build botsEric Fiselier2017-05-101-11/+1
| | | | llvm-svn: 302627
* Improve how LIT reports the added environment variablesEric Fiselier2017-05-101-1/+5
| | | | llvm-svn: 302607
* Attempt to unbreak Libc++ test configurationEric Fiselier2017-05-101-4/+1
| | | | llvm-svn: 302604
* Fix test runtime environment on WindowsEric Fiselier2017-05-091-1/+4
| | | | llvm-svn: 302602
* Fix misspelling of environment throughout libc++Eric Fiselier2017-05-091-1/+1
| | | | llvm-svn: 302600
* Fix Windows tests when __config_site is present.Ben Craig2017-05-091-1/+1
| | | | | | | | Previously, the force includes would complain about a missing _DEBUG symbol. Now we dump macros before adding the force includes to the command line. Now with proper newlines. llvm-svn: 302497
* Revert "Fix Windows tests when __config_site is present."Ben Craig2017-05-091-1113/+1113
| | | | | | It's 2017, and line endings are still an issue. llvm-svn: 302496
* Fix Windows tests when __config_site is present.Ben Craig2017-05-081-1113/+1113
| | | | | | | Previously, the force includes would complain about a missing _DEBUG symbol. Now we dump macros before adding the force includes to the command line. llvm-svn: 302421
* Fix Windows locale detectionEric Fiselier2017-05-081-12/+14
| | | | llvm-svn: 302396
* Revert "Actually remove the MSVC STL when linking and testing libc++ on Windows"Eric Fiselier2017-05-071-5/+1
| | | | | | This reverts commit r302387. llvm-svn: 302389
* Actually remove the MSVC STL when linking and testing libc++ on WindowsEric Fiselier2017-05-071-1/+5
| | | | llvm-svn: 302387
* Add markup for libc++ dylib availabilityMehdi Amini2017-05-041-7/+43
| | | | | | | | | | | | | | | Libc++ is used as a system library on macOS and iOS (amongst others). In order for users to be able to compile a binary that is intended to be deployed to an older version of the platform, clang provides the availability attribute <https://clang.llvm.org/docs/AttributeReference.html#availability>_ that can be placed on declarations to describe the lifecycle of a symbol in the library. See docs/DesignDocs/AvailabilityMarkup.rst for more information. Differential Revision: https://reviews.llvm.org/D31739 llvm-svn: 302172
* XFAIL Windows test failures under test/libcxxEric Fiselier2017-04-211-1/+1
| | | | | | | | This patch XFAIL's a number of tests under test/libcxx when on Windows. These failures need more investigation or patches to either Clang or libc++ but for now we don't want them to prevent the bot from going green. llvm-svn: 300941
* Fix 'verify-support' available featureEric Fiselier2017-04-211-2/+2
| | | | llvm-svn: 300934
* Fix comment and remove incorrect linker flags in test configurationEric Fiselier2017-04-201-3/+5
| | | | llvm-svn: 300881
OpenPOWER on IntegriCloud