[clang-tools-extra] r374885 - [clang-tools-extra] Fix overzealous linking of dylib to clangTidy

2019-10-15 Thread Michal Gorny via cfe-commits
Author: mgorny Date: Tue Oct 15 06:05:38 2019 New Revision: 374885 URL: http://llvm.org/viewvc/llvm-project?rev=374885&view=rev Log: [clang-tools-extra] Fix overzealous linking of dylib to clangTidy Fix accidentally making clangTidy library link to dylib. This causes libclang.so to also link to

r374754 - [clang] [clang-offload-bundler] Fix finding installed llvm-objcopy

2019-10-13 Thread Michal Gorny via cfe-commits
Author: mgorny Date: Sun Oct 13 22:33:23 2019 New Revision: 374754 URL: http://llvm.org/viewvc/llvm-project?rev=374754&view=rev Log: [clang] [clang-offload-bundler] Fix finding installed llvm-objcopy Allow finding installed llvm-objcopy in PATH if it's not present in the directory containing clan

r373936 - [clang] [cmake] Support LLVM_DISTRIBUTION_COMPONENTS in stand-alone build

2019-10-07 Thread Michal Gorny via cfe-commits
Author: mgorny Date: Mon Oct 7 11:14:56 2019 New Revision: 373936 URL: http://llvm.org/viewvc/llvm-project?rev=373936&view=rev Log: [clang] [cmake] Support LLVM_DISTRIBUTION_COMPONENTS in stand-alone build Differential Revision: https://reviews.llvm.org/D68412 Modified: cfe/trunk/CMakeLists

[clang-tools-extra] r373786 - [clang-tools-extra] [cmake] Link against libclang-cpp whenever possible

2019-10-04 Thread Michal Gorny via cfe-commits
Author: mgorny Date: Fri Oct 4 13:30:02 2019 New Revision: 373786 URL: http://llvm.org/viewvc/llvm-project?rev=373786&view=rev Log: [clang-tools-extra] [cmake] Link against libclang-cpp whenever possible Use clang_target_link_libraries() in order to support linking against libclang-cpp instead o

r373785 - [clang] [cmake] Use add_clang_tool() to install all tools

2019-10-04 Thread Michal Gorny via cfe-commits
Author: mgorny Date: Fri Oct 4 13:28:59 2019 New Revision: 373785 URL: http://llvm.org/viewvc/llvm-project?rev=373785&view=rev Log: [clang] [cmake] Use add_clang_tool() to install all tools Switch clang-check, clang-extdef-mapping and clang-offload-bundler to use add_clang_tool() rather than add

r373695 - [clang] [cmake] Add distribution install targets for remaining components

2019-10-03 Thread Michal Gorny via cfe-commits
Author: mgorny Date: Thu Oct 3 22:43:20 2019 New Revision: 373695 URL: http://llvm.org/viewvc/llvm-project?rev=373695&view=rev Log: [clang] [cmake] Add distribution install targets for remaining components Add install targets as necessary to install bash-autocomplete, scan-build and scan-view vi

[clang-tools-extra] r373694 - [clang-tools-extra] [cmake] Use add_clang_tool() to install tools

2019-10-03 Thread Michal Gorny via cfe-commits
Author: mgorny Date: Thu Oct 3 22:40:29 2019 New Revision: 373694 URL: http://llvm.org/viewvc/llvm-project?rev=373694&view=rev Log: [clang-tools-extra] [cmake] Use add_clang_tool() to install tools Replace add_clang_executable() calls with add_clang_tool() that takes care of creating correct, di

r372527 - [clang] [Basic] Enable __has_feature(leak_sanitizer)

2019-09-22 Thread Michal Gorny via cfe-commits
Author: mgorny Date: Sun Sep 22 13:55:01 2019 New Revision: 372527 URL: http://llvm.org/viewvc/llvm-project?rev=372527&view=rev Log: [clang] [Basic] Enable __has_feature(leak_sanitizer) Add a 'leak_sanitizer' feature akin to existing '*_sanitizer' features to let programmers switch code paths acc

r371733 - [clang] [unittest] Import LLVMTestingSupport if necessary

2019-09-12 Thread Michal Gorny via cfe-commits
Author: mgorny Date: Thu Sep 12 06:06:12 2019 New Revision: 371733 URL: http://llvm.org/viewvc/llvm-project?rev=371733&view=rev Log: [clang] [unittest] Import LLVMTestingSupport if necessary Add LLVMTestingSupport directory from LLVM_MAIN_SRC_DIR when building clang stand-alone and LLVMTestingSup

r362587 - [clang] [test] Add a (xfailing) test for PR41027

2019-06-05 Thread Michal Gorny via cfe-commits
Author: mgorny Date: Wed Jun 5 01:21:42 2019 New Revision: 362587 URL: http://llvm.org/viewvc/llvm-project?rev=362587&view=rev Log: [clang] [test] Add a (xfailing) test for PR41027 Add a test for tracking PR41027 (8.0 regression breaking assembly code relying on __builtin_constant_p() to identif

[libunwind] r361931 - [libunwind] [test] Fix inferring source paths

2019-05-29 Thread Michal Gorny via cfe-commits
Author: mgorny Date: Wed May 29 00:20:30 2019 New Revision: 361931 URL: http://llvm.org/viewvc/llvm-project?rev=361931&view=rev Log: [libunwind] [test] Fix inferring source paths Fix two issues that caused libcxx source path not to be inferred correctly when not specified explicitly: 1. get_lit_

r355282 - [clang] [ToolChains/NetBSD] Support relative libc++ header path

2019-03-03 Thread Michal Gorny via cfe-commits
Author: mgorny Date: Sun Mar 3 02:06:34 2019 New Revision: 355282 URL: http://llvm.org/viewvc/llvm-project?rev=355282&view=rev Log: [clang] [ToolChains/NetBSD] Support relative libc++ header path Support locating the libc++ header files relatively to the clang executable, in addition to the defa

r352610 - [clang] [Driver] [NetBSD] Append -rpath for shared compiler-rt runtimes

2019-01-30 Thread Michal Gorny via cfe-commits
Author: mgorny Date: Wed Jan 30 00:20:24 2019 New Revision: 352610 URL: http://llvm.org/viewvc/llvm-project?rev=352610&view=rev Log: [clang] [Driver] [NetBSD] Append -rpath for shared compiler-rt runtimes Append appropriate -rpath when using shared compiler-rt runtimes, e.g. '-fsanitize=address -

r351752 - [test] Pass -ccc-install-dir in mac compilation db test

2019-01-21 Thread Michal Gorny via cfe-commits
Author: mgorny Date: Mon Jan 21 09:05:43 2019 New Revision: 351752 URL: http://llvm.org/viewvc/llvm-project?rev=351752&view=rev Log: [test] Pass -ccc-install-dir in mac compilation db test Pass -ccc-install-dir explicitly as the compilation database code does not pass argv[0] to getMainExecutable

r351304 - [test] Disable Python binding tests w/ LLVM_ENABLE_PIC=OFF

2019-01-16 Thread Michal Gorny via cfe-commits
Author: mgorny Date: Wed Jan 16 00:05:13 2019 New Revision: 351304 URL: http://llvm.org/viewvc/llvm-project?rev=351304&view=rev Log: [test] Disable Python binding tests w/ LLVM_ENABLE_PIC=OFF Disable Python binding tests when LLVM_ENABLE_PIC is disabled, as libclang.so is not being built in that

r351002 - [NetBSD] Enable additional sanitizer types

2019-01-12 Thread Michal Gorny via cfe-commits
Author: mgorny Date: Sat Jan 12 03:18:35 2019 New Revision: 351002 URL: http://llvm.org/viewvc/llvm-project?rev=351002&view=rev Log: [NetBSD] Enable additional sanitizer types Differential Revision: https://reviews.llvm.org/D56607 Modified: cfe/trunk/lib/Driver/ToolChains/NetBSD.cpp cfe/

[clang-tools-extra] r350329 - [clangd] Fix detecting atomics in stand-alone builds

2019-01-03 Thread Michal Gorny via cfe-commits
Author: mgorny Date: Thu Jan 3 08:43:27 2019 New Revision: 350329 URL: http://llvm.org/viewvc/llvm-project?rev=350329&view=rev Log: [clangd] Fix detecting atomics in stand-alone builds Include CheckAtomic CMake module from LLVM in order to detect support for atomics when building stand-alone. O

r350027 - [Distro] Support detecting Gentoo

2018-12-23 Thread Michal Gorny via cfe-commits
Author: mgorny Date: Sun Dec 23 07:07:19 2018 New Revision: 350027 URL: http://llvm.org/viewvc/llvm-project?rev=350027&view=rev Log: [Distro] Support detecting Gentoo Add support for distinguishing plain Gentoo distribution, and a unit test for it. This is going to be used to introduce distro-sp

r350028 - [Driver] Disable -faddrsig on Gentoo by default

2018-12-23 Thread Michal Gorny via cfe-commits
Author: mgorny Date: Sun Dec 23 07:07:26 2018 New Revision: 350028 URL: http://llvm.org/viewvc/llvm-project?rev=350028&view=rev Log: [Driver] Disable -faddrsig on Gentoo by default Gentoo supports combining clang toolchain with GNU binutils, and many users actually do that. As -faddrsig is not s

r349754 - [Driver] Fix accidentally reversed condition in r349752

2018-12-20 Thread Michal Gorny via cfe-commits
Author: mgorny Date: Thu Dec 20 05:27:37 2018 New Revision: 349754 URL: http://llvm.org/viewvc/llvm-project?rev=349754&view=rev Log: [Driver] Fix accidentally reversed condition in r349752 Modified: cfe/trunk/lib/Driver/ToolChains/CommonArgs.cpp Modified: cfe/trunk/lib/Driver/ToolChains/Comm

r349752 - Replace getOS() == llvm::Triple::*BSD with isOS*BSD() [NFCI]

2018-12-20 Thread Michal Gorny via cfe-commits
Author: mgorny Date: Thu Dec 20 05:09:30 2018 New Revision: 349752 URL: http://llvm.org/viewvc/llvm-project?rev=349752&view=rev Log: Replace getOS() == llvm::Triple::*BSD with isOS*BSD() [NFCI] Replace multiple comparisons of getOS() value with FreeBSD, NetBSD, OpenBSD and DragonFly with matching

r349650 - [Driver] [NetBSD] Add -D_REENTRANT when using sanitizers

2018-12-19 Thread Michal Gorny via cfe-commits
Author: mgorny Date: Wed Dec 19 09:25:59 2018 New Revision: 349650 URL: http://llvm.org/viewvc/llvm-project?rev=349650&view=rev Log: [Driver] [NetBSD] Add -D_REENTRANT when using sanitizers NetBSD intends to support only reentrant interfaces in interceptors. When -lpthread is used without _REENTR

r349649 - [Driver] Add .hasAnySanitizer() to SanitizerArgs

2018-12-19 Thread Michal Gorny via cfe-commits
Author: mgorny Date: Wed Dec 19 09:25:55 2018 New Revision: 349649 URL: http://llvm.org/viewvc/llvm-project?rev=349649&view=rev Log: [Driver] Add .hasAnySanitizer() to SanitizerArgs Add a simple method to query whether any sanitizer was enabled, via SanitizerArgs. This will be used in the NetBSD

r349647 - [Driver] Disable -faddrsig by default on NetBSD

2018-12-19 Thread Michal Gorny via cfe-commits
Author: mgorny Date: Wed Dec 19 09:25:46 2018 New Revision: 349647 URL: http://llvm.org/viewvc/llvm-project?rev=349647&view=rev Log: [Driver] Disable -faddrsig by default on NetBSD Avoid passing -faddrsig by default on NetBSD. This platform is still using old GNU binutils that crashes on executa

r349648 - [Basic] Correct description of SanitizerSet.empty()

2018-12-19 Thread Michal Gorny via cfe-commits
Author: mgorny Date: Wed Dec 19 09:25:51 2018 New Revision: 349648 URL: http://llvm.org/viewvc/llvm-project?rev=349648&view=rev Log: [Basic] Correct description of SanitizerSet.empty() Differential Revision: https://reviews.llvm.org/D55830 Modified: cfe/trunk/include/clang/Basic/Sanitizers.h

[libunwind] r348852 - [cmake] Rename append_if to avoid collision with LLVM

2018-12-11 Thread Michal Gorny via cfe-commits
Author: mgorny Date: Tue Dec 11 07:30:04 2018 New Revision: 348852 URL: http://llvm.org/viewvc/llvm-project?rev=348852&view=rev Log: [cmake] Rename append_if to avoid collision with LLVM Rename the 'append_if' macro used in libunwind to 'unwind_append_if'. Otherwise, when used in a combined LLVM+

r348356 - [test] Disable Modules/prune.m on NetBSD as it requires 'touch -a'

2018-12-05 Thread Michal Gorny via cfe-commits
Author: mgorny Date: Wed Dec 5 03:17:50 2018 New Revision: 348356 URL: http://llvm.org/viewvc/llvm-project?rev=348356&view=rev Log: [test] Disable Modules/prune.m on NetBSD as it requires 'touch -a' Modified: cfe/trunk/test/Modules/prune.m Modified: cfe/trunk/test/Modules/prune.m URL: http

r346586 - [python] Support PathLike filenames and directories

2018-11-10 Thread Michal Gorny via cfe-commits
Author: mgorny Date: Sat Nov 10 03:41:36 2018 New Revision: 346586 URL: http://llvm.org/viewvc/llvm-project?rev=346586&view=rev Log: [python] Support PathLike filenames and directories Python 3.6 introduced a file system path protocol (PEP 519[1]). The standard library APIs accepting file system

r344666 - [python] [tests] Disable on known-broken arches

2018-10-16 Thread Michal Gorny via cfe-commits
Author: mgorny Date: Tue Oct 16 20:05:39 2018 New Revision: 344666 URL: http://llvm.org/viewvc/llvm-project?rev=344666&view=rev Log: [python] [tests] Disable on known-broken arches Disable the Python binding tests on AArch64, Hexagon and SystemZ following reports on test failures. The first two

r344411 - [python] [tests] Re-add once again, this time without Windows

2018-10-12 Thread Michal Gorny via cfe-commits
Author: mgorny Date: Fri Oct 12 13:03:54 2018 New Revision: 344411 URL: http://llvm.org/viewvc/llvm-project?rev=344411&view=rev Log: [python] [tests] Re-add once again, this time without Windows Modified: cfe/trunk/bindings/python/tests/CMakeLists.txt Modified: cfe/trunk/bindings/python/test

r344365 - [tests] Readd Python binding tests to check-all

2018-10-12 Thread Michal Gorny via cfe-commits
Author: mgorny Date: Fri Oct 12 09:55:44 2018 New Revision: 344365 URL: http://llvm.org/viewvc/llvm-project?rev=344365&view=rev Log: [tests] Readd Python binding tests to check-all Now that both issues found out during the last iteration have been fixed, reenable the Python binding tests on build

r344364 - [python] [tests] Remove cdb lookup failure test

2018-10-12 Thread Michal Gorny via cfe-commits
Author: mgorny Date: Fri Oct 12 09:55:39 2018 New Revision: 344364 URL: http://llvm.org/viewvc/llvm-project?rev=344364&view=rev Log: [python] [tests] Remove cdb lookup failure test Remove the test checking for compilation db lookup failure. Since r342228, JSONCompilationDatabasePlugin infers comp

r344288 - [python] [tests] Fix calling tests on Windows

2018-10-11 Thread Michal Gorny via cfe-commits
Author: mgorny Date: Thu Oct 11 13:26:55 2018 New Revision: 344288 URL: http://llvm.org/viewvc/llvm-project?rev=344288&view=rev Log: [python] [tests] Fix calling tests on Windows Fix passing arguments to the Python test command to use 'env' builtin CMake command, in order to fix compatibility wit

r344263 - [python] [tests] Retab CMakeLists.txt for consistency (NFC)

2018-10-11 Thread Michal Gorny via cfe-commits
Author: mgorny Date: Thu Oct 11 10:45:35 2018 New Revision: 344263 URL: http://llvm.org/viewvc/llvm-project?rev=344263&view=rev Log: [python] [tests] Retab CMakeLists.txt for consistency (NFC) Modified: cfe/trunk/bindings/python/tests/CMakeLists.txt Modified: cfe/trunk/bindings/python/tests/

r344260 - [tests] Remove Python tests from check-all due to breakage

2018-10-11 Thread Michal Gorny via cfe-commits
Author: mgorny Date: Thu Oct 11 10:25:05 2018 New Revision: 344260 URL: http://llvm.org/viewvc/llvm-project?rev=344260&view=rev Log: [tests] Remove Python tests from check-all due to breakage Remove the Python tests from default target in order to fix two kinds of breakage uncovered by enabling t

r344258 - [tests] Include Python binding tests in CMake rules

2018-10-11 Thread Michal Gorny via cfe-commits
Author: mgorny Date: Thu Oct 11 09:32:54 2018 New Revision: 344258 URL: http://llvm.org/viewvc/llvm-project?rev=344258&view=rev Log: [tests] Include Python binding tests in CMake rules Add a new CMake rule check-clang-python to run the Python bindings' test suite, and include it in check-all. Di

r344240 - [python] [tests] Support overriding library path via environment

2018-10-11 Thread Michal Gorny via cfe-commits
Author: mgorny Date: Thu Oct 11 04:58:07 2018 New Revision: 344240 URL: http://llvm.org/viewvc/llvm-project?rev=344240&view=rev Log: [python] [tests] Support overriding library path via environment Support a new CLANG_LIBRARY_PATH environment variable for the Python binding tests. This variable

r344241 - [tests] Include Python binding tests in CMake rules

2018-10-11 Thread Michal Gorny via cfe-commits
Author: mgorny Date: Thu Oct 11 04:58:14 2018 New Revision: 344241 URL: http://llvm.org/viewvc/llvm-project?rev=344241&view=rev Log: [tests] Include Python binding tests in CMake rules Add a new CMake rule check-clang-python to run the Python bindings' test suite, and include it in check-all. Di

r342897 - [python] [tests] Update test_code_completion

2018-09-24 Thread Michal Gorny via cfe-commits
Author: mgorny Date: Mon Sep 24 09:10:25 2018 New Revision: 342897 URL: http://llvm.org/viewvc/llvm-project?rev=342897&view=rev Log: [python] [tests] Update test_code_completion Update expected completions to match output generated by clang-7.0. Differential Revision: https://reviews.llvm.org/D5

r338627 - [test] Fix %hmaptool path for standalone builds

2018-08-01 Thread Michal Gorny via cfe-commits
Author: mgorny Date: Wed Aug 1 13:38:22 2018 New Revision: 338627 URL: http://llvm.org/viewvc/llvm-project?rev=338627&view=rev Log: [test] Fix %hmaptool path for standalone builds Fix %hmaptool path to refer to clang_tools_dir instead of llvm_tools_dir, in order to fix standalone builds. The to

[clang-tools-extra] r329594 - [cmake] Include LLVMTestingSupport when doing stand-alone build

2018-04-09 Thread Michal Gorny via cfe-commits
Author: mgorny Date: Mon Apr 9 10:08:14 2018 New Revision: 329594 URL: http://llvm.org/viewvc/llvm-project?rev=329594&view=rev Log: [cmake] Include LLVMTestingSupport when doing stand-alone build Explicitly include and build lib/Testing/Support from LLVM sources when doing a stand-alone build. T

r326836 - [FrontEnd] Allow overriding the default C/C++ -std via CMake vars

2018-03-06 Thread Michal Gorny via cfe-commits
Author: mgorny Date: Tue Mar 6 13:26:28 2018 New Revision: 326836 URL: http://llvm.org/viewvc/llvm-project?rev=326836&view=rev Log: [FrontEnd] Allow overriding the default C/C++ -std via CMake vars Provide two new CMake cache variables -- CLANG_DEFAULT_STD_C and CLANG_DEFAULT_STD_CXX -- that can

r318562 - [cmake] Use llvm-lit directory when provided for stand-alone build

2017-11-17 Thread Michal Gorny via cfe-commits
Author: mgorny Date: Fri Nov 17 14:21:23 2017 New Revision: 318562 URL: http://llvm.org/viewvc/llvm-project?rev=318562&view=rev Log: [cmake] Use llvm-lit directory when provided for stand-alone build After the recent lit test changes, clang attempts to run its tests via llvm-lit by default. Howev

r317986 - [python] [tests] Fix test_linkage for unique external linkage

2017-11-11 Thread Michal Gorny via cfe-commits
Author: mgorny Date: Sat Nov 11 12:01:41 2017 New Revision: 317986 URL: http://llvm.org/viewvc/llvm-project?rev=317986&view=rev Log: [python] [tests] Fix test_linkage for unique external linkage Starting with r314037, anonymous namespaces no longer give unique-external linkage to variables. Howev

r317828 - [python] [tests] Update priority values in code completion test

2017-11-09 Thread Michal Gorny via cfe-commits
Author: mgorny Date: Thu Nov 9 12:17:41 2017 New Revision: 317828 URL: http://llvm.org/viewvc/llvm-project?rev=317828&view=rev Log: [python] [tests] Update priority values in code completion test The priority for destructors and operators was reduced in r314019. Adjust the values used in the tes

[clang-tools-extra] r311983 - [cmake] Support running extra clang tool tests without static analyzer

2017-08-28 Thread Michal Gorny via cfe-commits
Author: mgorny Date: Mon Aug 28 22:58:08 2017 New Revision: 311983 URL: http://llvm.org/viewvc/llvm-project?rev=311983&view=rev Log: [cmake] Support running extra clang tool tests without static analyzer Support running the extra clang tool tests when the static analyzer is disabled. Disable the

r311923 - Reland r311836 - [Driver] Use arch type to find compiler-rt libraries (on Linux)

2017-08-28 Thread Michal Gorny via cfe-commits
Author: mgorny Date: Mon Aug 28 13:29:52 2017 New Revision: 311923 URL: http://llvm.org/viewvc/llvm-project?rev=311923&view=rev Log: Reland r311836 - [Driver] Use arch type to find compiler-rt libraries (on Linux) Use llvm::Triple::getArchTypeName() when looking for compiler-rt libraries, rather

r311861 - Revert r311836 - [Driver] Use arch type to find compiler-rt libraries (on Linux)

2017-08-27 Thread Michal Gorny via cfe-commits
Author: mgorny Date: Sun Aug 27 13:38:43 2017 New Revision: 311861 URL: http://llvm.org/viewvc/llvm-project?rev=311861&view=rev Log: Revert r311836 - [Driver] Use arch type to find compiler-rt libraries (on Linux) This causes a breakage on the Android build bot. Let's revert it until we figure ou

r311836 - [Driver] Use arch type to find compiler-rt libraries (on Linux)

2017-08-26 Thread Michal Gorny via cfe-commits
Author: mgorny Date: Sat Aug 26 14:35:11 2017 New Revision: 311836 URL: http://llvm.org/viewvc/llvm-project?rev=311836&view=rev Log: [Driver] Use arch type to find compiler-rt libraries (on Linux) Use llvm::Triple::getArchTypeName() when looking for compiler-rt libraries, rather than the exact ar

[clang-tools-extra] r309979 - [test] Fix clang library dir in LD_LIBRARY_PATH For stand-alone build

2017-08-03 Thread Michal Gorny via cfe-commits
Author: mgorny Date: Thu Aug 3 12:41:33 2017 New Revision: 309979 URL: http://llvm.org/viewvc/llvm-project?rev=309979&view=rev Log: [test] Fix clang library dir in LD_LIBRARY_PATH For stand-alone build Prepend the clang library directory (determined using SHLIBDIR, alike in clang) to the LD_LIBR

r304715 - [test] Fix baremetal test to allow any -resource-dir

2017-06-05 Thread Michal Gorny via cfe-commits
Author: mgorny Date: Mon Jun 5 09:13:37 2017 New Revision: 304715 URL: http://llvm.org/viewvc/llvm-project?rev=304715&view=rev Log: [test] Fix baremetal test to allow any -resource-dir The baremetal test (r303873) has been added with expectance of very specific -resource-dir. However, the test i

r299813 - [cmake] Support Gentoo install for z3

2017-04-08 Thread Michal Gorny via cfe-commits
Author: mgorny Date: Sat Apr 8 09:38:06 2017 New Revision: 299813 URL: http://llvm.org/viewvc/llvm-project?rev=299813&view=rev Log: [cmake] Support Gentoo install for z3 Add the 'z3' subdirectory to the list of possible path suffixes for libz3 header search. The z3 headers are installed in /usr/

[clang-tools-extra] r297806 - [test] Fix test dependencies when using installed tools

2017-03-14 Thread Michal Gorny via cfe-commits
Author: mgorny Date: Wed Mar 15 00:55:43 2017 New Revision: 297806 URL: http://llvm.org/viewvc/llvm-project?rev=297806&view=rev Log: [test] Fix test dependencies when using installed tools Use the LLVM_UTILS_PROVIDED variable to determine whether test tool dependencies should be exposed for clang

[libcxx] r294431 - [test] Fix hard_link_count test to account for fs with dir nlink==1

2017-02-08 Thread Michal Gorny via cfe-commits
Author: mgorny Date: Wed Feb 8 03:57:32 2017 New Revision: 294431 URL: http://llvm.org/viewvc/llvm-project?rev=294431&view=rev Log: [test] Fix hard_link_count test to account for fs with dir nlink==1 Filesystems are not required to maintain a hard link count consistent with number of subdirector

r293632 - [cmake] Hint find_package() to prefer LLVM installed alongside clang

2017-01-31 Thread Michal Gorny via cfe-commits
Author: mgorny Date: Tue Jan 31 08:15:40 2017 New Revision: 293632 URL: http://llvm.org/viewvc/llvm-project?rev=293632&view=rev Log: [cmake] Hint find_package() to prefer LLVM installed alongside clang Include a path hint for find_package() in ClangConfig.cmake to ensure that CMake prefers LLVM i

r293053 - [test] Add HAVE_LIBZ to canonicalized booleans

2017-01-25 Thread Michal Gorny via cfe-commits
Author: mgorny Date: Wed Jan 25 07:31:53 2017 New Revision: 293053 URL: http://llvm.org/viewvc/llvm-project?rev=293053&view=rev Log: [test] Add HAVE_LIBZ to canonicalized booleans Canonicalize HAVE_LIBZ as well to fix buildbot failures. Modified: cfe/trunk/test/CMakeLists.txt Modified: cfe/

r293052 - [test] Port clang tests to canonicalized booleans

2017-01-25 Thread Michal Gorny via cfe-commits
Author: mgorny Date: Wed Jan 25 07:11:45 2017 New Revision: 293052 URL: http://llvm.org/viewvc/llvm-project?rev=293052&view=rev Log: [test] Port clang tests to canonicalized booleans Use the new llvm_canonicalize_cmake_booleans() function to canonicalize booleans for lit tests. Replace the duplic

[libcxxabi] r292018 - [cmake] Handle missing LIBUNWIND_* directories gracefully

2017-01-14 Thread Michal Gorny via cfe-commits
Author: mgorny Date: Sat Jan 14 11:05:16 2017 New Revision: 292018 URL: http://llvm.org/viewvc/llvm-project?rev=292018&view=rev Log: [cmake] Handle missing LIBUNWIND_* directories gracefully Add LIBUNWIND_* directories to include path only if they were actually found, in order to fix the CMake er

[libcxx] r291508 - [cmake] Obtain LLVM_CMAKE_PATH from llvm-config if available

2017-01-09 Thread Michal Gorny via cfe-commits
Author: mgorny Date: Mon Jan 9 17:41:38 2017 New Revision: 291508 URL: http://llvm.org/viewvc/llvm-project?rev=291508&view=rev Log: [cmake] Obtain LLVM_CMAKE_PATH from llvm-config if available Use the new --cmakedir option to obtain LLVM_CMAKE_PATH straight from llvm-config. Fallback to local re

[libcxxabi] r291506 - [cmake] Obtain LLVM_CMAKE_PATH from llvm-config if available

2017-01-09 Thread Michal Gorny via cfe-commits
Author: mgorny Date: Mon Jan 9 17:31:05 2017 New Revision: 291506 URL: http://llvm.org/viewvc/llvm-project?rev=291506&view=rev Log: [cmake] Obtain LLVM_CMAKE_PATH from llvm-config if available Use the new --cmakedir option to obtain LLVM_CMAKE_PATH straight from llvm-config. Fallback to local re

[libunwind] r291505 - [cmake] Obtain LLVM_CMAKE_PATH from llvm-config if available

2017-01-09 Thread Michal Gorny via cfe-commits
Author: mgorny Date: Mon Jan 9 17:27:04 2017 New Revision: 291505 URL: http://llvm.org/viewvc/llvm-project?rev=291505&view=rev Log: [cmake] Obtain LLVM_CMAKE_PATH from llvm-config if available Use the new --cmakedir option to obtain LLVM_CMAKE_PATH straight from llvm-config. Fallback to local re

r291495 - [cmake] Obtain LLVM_CMAKE_PATH from llvm-config

2017-01-09 Thread Michal Gorny via cfe-commits
Author: mgorny Date: Mon Jan 9 17:06:39 2017 New Revision: 291495 URL: http://llvm.org/viewvc/llvm-project?rev=291495&view=rev Log: [cmake] Obtain LLVM_CMAKE_PATH from llvm-config Use the new --cmakedir option to obtain LLVM_CMAKE_PATH straight from llvm-config instead of reconstructing it local

r291477 - [Frontend] Correct values of ATOMIC_*_LOCK_FREE to match builtin

2017-01-09 Thread Michal Gorny via cfe-commits
Author: mgorny Date: Mon Jan 9 14:54:20 2017 New Revision: 291477 URL: http://llvm.org/viewvc/llvm-project?rev=291477&view=rev Log: [Frontend] Correct values of ATOMIC_*_LOCK_FREE to match builtin Correct the logic used to set ATOMIC_*_LOCK_FREE preprocessor macros not to rely on the ABI alignme

r289865 - [test] Extend llvm_shlib_dir fix to unittests

2016-12-15 Thread Michal Gorny via cfe-commits
Author: mgorny Date: Thu Dec 15 14:31:08 2016 New Revision: 289865 URL: http://llvm.org/viewvc/llvm-project?rev=289865&view=rev Log: [test] Extend llvm_shlib_dir fix to unittests Extend the fix from rL286952 to unittests. The fix added clang built library directories (via llvm_shlib_dir) to LD_LI

r289440 - [Driver] Attempt to fix new linux-ld tests on Windows

2016-12-12 Thread Michal Gorny via cfe-commits
Author: mgorny Date: Mon Dec 12 10:04:37 2016 New Revision: 289440 URL: http://llvm.org/viewvc/llvm-project?rev=289440&view=rev Log: [Driver] Attempt to fix new linux-ld tests on Windows (broken by r289436) Modified: cfe/trunk/test/Driver/linux-ld.c Modified: cfe/trunk/test/Driver/linux-ld.

r289436 - [Driver] Fix finding multilib gcc install on Gentoo (with gcc-config)

2016-12-12 Thread Michal Gorny via cfe-commits
Author: mgorny Date: Mon Dec 12 09:07:43 2016 New Revision: 289436 URL: http://llvm.org/viewvc/llvm-project?rev=289436&view=rev Log: [Driver] Fix finding multilib gcc install on Gentoo (with gcc-config) Fix the gcc-config code to support multilib gcc installs properly. This solves two problems: -

r288062 - [Driver] Add unit tests for Distro detection

2016-11-28 Thread Michal Gorny via cfe-commits
Author: mgorny Date: Mon Nov 28 15:11:22 2016 New Revision: 288062 URL: http://llvm.org/viewvc/llvm-project?rev=288062&view=rev Log: [Driver] Add unit tests for Distro detection Add a set of unit tests for the distro detection code. The tests use an in-memory virtual filesystems resembling releas

r288061 - [Driver] Fix recognizing newer OpenSUSE versions

2016-11-28 Thread Michal Gorny via cfe-commits
Author: mgorny Date: Mon Nov 28 15:11:18 2016 New Revision: 288061 URL: http://llvm.org/viewvc/llvm-project?rev=288061&view=rev Log: [Driver] Fix recognizing newer OpenSUSE versions Fix recognizing newer OpenSUSE versions that combine the two version components into 'VERSION = x.y'. The check was

r288060 - [Driver] Refactor distro detection & classification as a separate API

2016-11-28 Thread Michal Gorny via cfe-commits
Author: mgorny Date: Mon Nov 28 15:11:14 2016 New Revision: 288060 URL: http://llvm.org/viewvc/llvm-project?rev=288060&view=rev Log: [Driver] Refactor distro detection & classification as a separate API Refactor the Distro enum along with helper functions into a full-fledged Distro class, inspire

r286952 - [test] Correctly include build llvm_shlib_dir in stand-alone builds

2016-11-15 Thread Michal Gorny via cfe-commits
Author: mgorny Date: Tue Nov 15 06:54:10 2016 New Revision: 286952 URL: http://llvm.org/viewvc/llvm-project?rev=286952&view=rev Log: [test] Correctly include build llvm_shlib_dir in stand-alone builds Add the build llvm_shlib_dir into LD_LIBRARY_PATH before the directory specified as llvm_libs_di

r285741 - [test] Fix detecting LLVM zlib support in stand-alone builds

2016-11-01 Thread Michal Gorny via cfe-commits
Author: mgorny Date: Tue Nov 1 15:31:52 2016 New Revision: 285741 URL: http://llvm.org/viewvc/llvm-project?rev=285741&view=rev Log: [test] Fix detecting LLVM zlib support in stand-alone builds Fix the test run to declare missing HAVE_LIBZ value in stand-alone builds, using the LLVM_ENABLE_ZLIB t

r285076 - [Driver] Disable OpenSUSE rules for OpenSUSE/SLES 10 and older

2016-10-25 Thread Michal Gorny via cfe-commits
Author: mgorny Date: Tue Oct 25 10:33:32 2016 New Revision: 285076 URL: http://llvm.org/viewvc/llvm-project?rev=285076&view=rev Log: [Driver] Disable OpenSUSE rules for OpenSUSE/SLES 10 and older Disable the OpenSUSE rules for OpenSUSE versions older than 11 as they are incompatible with the old

r285074 - [Driver] Support obtaining active toolchain from gcc-config on Gentoo

2016-10-25 Thread Michal Gorny via cfe-commits
Author: mgorny Date: Tue Oct 25 10:07:41 2016 New Revision: 285074 URL: http://llvm.org/viewvc/llvm-project?rev=285074&view=rev Log: [Driver] Support obtaining active toolchain from gcc-config on Gentoo Support using gcc-config to determine the correct GCC toolchain location on Gentoo. In order t

r284774 - [Driver] Refactor DetectDistro() parameters to take VFS ref only. NFC

2016-10-20 Thread Michal Gorny via cfe-commits
Author: mgorny Date: Thu Oct 20 15:45:40 2016 New Revision: 284774 URL: http://llvm.org/viewvc/llvm-project?rev=284774&view=rev Log: [Driver] Refactor DetectDistro() parameters to take VFS ref only. NFC Refactor the DetectDistro() function to take a single vfs::FileSystem reference only, instead

r284770 - [Driver] Parse Debian version as integer when possible. NFC

2016-10-20 Thread Michal Gorny via cfe-commits
Author: mgorny Date: Thu Oct 20 15:13:35 2016 New Revision: 284770 URL: http://llvm.org/viewvc/llvm-project?rev=284770&view=rev Log: [Driver] Parse Debian version as integer when possible. NFC Replace the string matching for /etc/debian_version with split integer/string matching algorithm. When t

[libcxx] r284583 - [cmake] Allow testing against installed LLVM with no sources

2016-10-19 Thread Michal Gorny via cfe-commits
Author: mgorny Date: Wed Oct 19 07:34:17 2016 New Revision: 284583 URL: http://llvm.org/viewvc/llvm-project?rev=284583&view=rev Log: [cmake] Allow testing against installed LLVM with no sources Adjust the stand-alone build files to accept either CMake files from LLVM_CMAKE_PATH or from LLVM_MAIN_

r284582 - [cmake] Use LLVM_CMAKE_PATH for GetSVN script

2016-10-19 Thread Michal Gorny via cfe-commits
Author: mgorny Date: Wed Oct 19 07:21:39 2016 New Revision: 284582 URL: http://llvm.org/viewvc/llvm-project?rev=284582&view=rev Log: [cmake] Use LLVM_CMAKE_PATH for GetSVN script Use the LLVM_CMAKE_PATH variable to locate the GetSVN.cmake script. The variable was already available in stand-alone

r284496 - [cmake] Update lit search to match the one in LLVM

2016-10-18 Thread Michal Gorny via cfe-commits
Author: mgorny Date: Tue Oct 18 12:07:30 2016 New Revision: 284496 URL: http://llvm.org/viewvc/llvm-project?rev=284496&view=rev Log: [cmake] Update lit search to match the one in LLVM Update the lit search logic to support all names supported in LLVM (since r283029). The search order (i.e. PATHS

[libcxx] r284493 - [solaris] Fix iswxdigit_l() support function prototype

2016-10-18 Thread Michal Gorny via cfe-commits
Author: mgorny Date: Tue Oct 18 11:54:54 2016 New Revision: 284493 URL: http://llvm.org/viewvc/llvm-project?rev=284493&view=rev Log: [solaris] Fix iswxdigit_l() support function prototype Fix the iswxdigit_l() function prototype to take wint_t parameter instead of incorrect wchar_t. Differential

[libcxx] r284494 - [solaris] Convert the support library to C++ to fix -std=c++11 build

2016-10-18 Thread Michal Gorny via cfe-commits
Author: mgorny Date: Tue Oct 18 11:54:59 2016 New Revision: 284494 URL: http://llvm.org/viewvc/llvm-project?rev=284494&view=rev Log: [solaris] Convert the support library to C++ to fix -std=c++11 build Convert the Solaris xlocale.c compatibility library from plain C to C++ in order to fix the bui

r284403 - [Driver] Use VFS to perform all distribution checks

2016-10-17 Thread Michal Gorny via cfe-commits
Author: mgorny Date: Mon Oct 17 13:07:15 2016 New Revision: 284403 URL: http://llvm.org/viewvc/llvm-project?rev=284403&view=rev Log: [Driver] Use VFS to perform all distribution checks Use the VFS provided by D.getVFS() for all distribution checks, including those performing read of the release f

r283746 - [Driver] Make -print-libgcc-file-name print compiler-rt lib when used

2016-10-10 Thread Michal Gorny via cfe-commits
Author: mgorny Date: Mon Oct 10 07:23:40 2016 New Revision: 283746 URL: http://llvm.org/viewvc/llvm-project?rev=283746&view=rev Log: [Driver] Make -print-libgcc-file-name print compiler-rt lib when used Make the -print-libgcc-file-name option print an appropriate compiler runtime library, that is

[libcxx] r283659 - [cmake] Split linked libraries into private & public, for linker script

2016-10-08 Thread Michal Gorny via cfe-commits
Author: mgorny Date: Sat Oct 8 05:27:45 2016 New Revision: 283659 URL: http://llvm.org/viewvc/llvm-project?rev=283659&view=rev Log: [cmake] Split linked libraries into private & public, for linker script Introduce LIBCXX_LIBRARIES_PUBLIC in addition to LIBCXX_LIBRARIES that holds 'public' interf

r283586 - Revert r283572 - [Driver] Make -print-libgcc-file-name print compiler-rt lib when used

2016-10-07 Thread Michal Gorny via cfe-commits
Author: mgorny Date: Fri Oct 7 15:04:00 2016 New Revision: 283586 URL: http://llvm.org/viewvc/llvm-project?rev=283586&view=rev Log: Revert r283572 - [Driver] Make -print-libgcc-file-name print compiler-rt lib when used Revert the -print-libgcc-file-name change as the new test fails on Darwin. I

r283572 - [Driver] Make -print-libgcc-file-name print compiler-rt lib when used

2016-10-07 Thread Michal Gorny via cfe-commits
Author: mgorny Date: Fri Oct 7 12:08:06 2016 New Revision: 283572 URL: http://llvm.org/viewvc/llvm-project?rev=283572&view=rev Log: [Driver] Make -print-libgcc-file-name print compiler-rt lib when used Make the -print-libgcc-file-name option print an appropriate compiler runtime library, that is

r283075 - [cmake] Install 'clang-cpp' symlink

2016-10-02 Thread Michal Gorny via cfe-commits
Author: mgorny Date: Sun Oct 2 14:28:57 2016 New Revision: 283075 URL: http://llvm.org/viewvc/llvm-project?rev=283075&view=rev Log: [cmake] Install 'clang-cpp' symlink Install the 'clang-cpp' symlink used to spawn the preprocessor. The code handling this suffix is already included in Driver. Fre

[libcxx] r282524 - Revert r282483 - [cmake] Add linker option "-Wl, -z, defs" in standalone build

2016-09-27 Thread Michal Gorny via cfe-commits
Author: mgorny Date: Tue Sep 27 13:54:02 2016 New Revision: 282524 URL: http://llvm.org/viewvc/llvm-project?rev=282524&view=rev Log: Revert r282483 - [cmake] Add linker option "-Wl,-z,defs" in standalone build Revert r282483 as it causes build failures due to missing symbols when not linking to -

[libcxx] r282483 - [cmake] Add linker option "-Wl, -z, defs" in standalone build

2016-09-27 Thread Michal Gorny via cfe-commits
Author: mgorny Date: Tue Sep 27 07:15:35 2016 New Revision: 282483 URL: http://llvm.org/viewvc/llvm-project?rev=282483&view=rev Log: [cmake] Add linker option "-Wl,-z,defs" in standalone build Add the "-Wl,-z,defs" linker option that is used to prevent underlinking. It is already used by LLVM its

[libcxx] r282475 - [cmake] Strip possibly-inherited compiler flags in in-tree build only

2016-09-27 Thread Michal Gorny via cfe-commits
Author: mgorny Date: Tue Sep 27 02:55:26 2016 New Revision: 282475 URL: http://llvm.org/viewvc/llvm-project?rev=282475&view=rev Log: [cmake] Strip possibly-inherited compiler flags in in-tree build only Strip the set of flags (including debug defs, -m32) that could be inherited from top-level LLV

[libcxx] r282435 - [include] Declare __STDC_*_MACROS for C++11 compat in old libc

2016-09-26 Thread Michal Gorny via cfe-commits
Author: mgorny Date: Mon Sep 26 15:20:00 2016 New Revision: 282435 URL: http://llvm.org/viewvc/llvm-project?rev=282435&view=rev Log: [include] Declare __STDC_*_MACROS for C++11 compat in old libc Declare __STDC_FORMAT_MACROS, __STDC_LIMIT_MACROS and __STDC_CONSTANT_MACROS before including real in