r335704 - [CMake] Provide direct support for building sanitized runtimes

2018-06-26 Thread Petr Hosek via cfe-commits
Author: phosek Date: Tue Jun 26 20:35:53 2018 New Revision: 335704 URL: http://llvm.org/viewvc/llvm-project?rev=335704&view=rev Log: [CMake] Provide direct support for building sanitized runtimes This avoids having to rely on magic separators and special parsing. Differential Revision: https://r

r335708 - [CMake] Support passing FUCHSIA_SDK as the only variable

2018-06-26 Thread Petr Hosek via cfe-commits
Author: phosek Date: Tue Jun 26 22:50:43 2018 New Revision: 335708 URL: http://llvm.org/viewvc/llvm-project?rev=335708&view=rev Log: [CMake] Support passing FUCHSIA_SDK as the only variable Now that the structure of Fuchsia SDK has been formalized, we no longer need to pass all the different CFLA

r335809 - Support for multiarch runtimes layout

2018-06-27 Thread Petr Hosek via cfe-commits
Author: phosek Date: Wed Jun 27 20:11:52 2018 New Revision: 335809 URL: http://llvm.org/viewvc/llvm-project?rev=335809&view=rev Log: Support for multiarch runtimes layout This change adds a support for multiarch style runtimes layout, so in addition to the existing layout where runtimes get insta

[libunwind] r335809 - Support for multiarch runtimes layout

2018-06-27 Thread Petr Hosek via cfe-commits
Author: phosek Date: Wed Jun 27 20:11:52 2018 New Revision: 335809 URL: http://llvm.org/viewvc/llvm-project?rev=335809&view=rev Log: Support for multiarch runtimes layout This change adds a support for multiarch style runtimes layout, so in addition to the existing layout where runtimes get insta

[libcxx] r335809 - Support for multiarch runtimes layout

2018-06-27 Thread Petr Hosek via cfe-commits
Author: phosek Date: Wed Jun 27 20:11:52 2018 New Revision: 335809 URL: http://llvm.org/viewvc/llvm-project?rev=335809&view=rev Log: Support for multiarch runtimes layout This change adds a support for multiarch style runtimes layout, so in addition to the existing layout where runtimes get insta

[libcxxabi] r335809 - Support for multiarch runtimes layout

2018-06-27 Thread Petr Hosek via cfe-commits
Author: phosek Date: Wed Jun 27 20:11:52 2018 New Revision: 335809 URL: http://llvm.org/viewvc/llvm-project?rev=335809&view=rev Log: Support for multiarch runtimes layout This change adds a support for multiarch style runtimes layout, so in addition to the existing layout where runtimes get insta

r335810 - Handle both Linux and Windows path separator for the resource dir

2018-06-27 Thread Petr Hosek via cfe-commits
Author: phosek Date: Wed Jun 27 20:54:08 2018 New Revision: 335810 URL: http://llvm.org/viewvc/llvm-project?rev=335810&view=rev Log: Handle both Linux and Windows path separator for the resource dir The resource dir path used for the multiarch runtimes support is constructed in a platform indepen

r335812 - [CMake] Use explicit targets for building Linux runtimes

2018-06-27 Thread Petr Hosek via cfe-commits
Author: phosek Date: Wed Jun 27 22:15:46 2018 New Revision: 335812 URL: http://llvm.org/viewvc/llvm-project?rev=335812&view=rev Log: [CMake] Use explicit targets for building Linux runtimes Previously we were using default logic when building Linux runtimes in Fuchsia toolchain, but that leads to

r335917 - [CMake] Build static runtimes for host in Fuchsia first stage

2018-06-28 Thread Petr Hosek via cfe-commits
Author: phosek Date: Thu Jun 28 13:19:11 2018 New Revision: 335917 URL: http://llvm.org/viewvc/llvm-project?rev=335917&view=rev Log: [CMake] Build static runtimes for host in Fuchsia first stage First stage build is only a minimal build where we don't need a complete multiarch support, but we nee

r335919 - [CMake] Don't build Linux targets on Darwin in Fuchsia toolchain

2018-06-28 Thread Petr Hosek via cfe-commits
Author: phosek Date: Thu Jun 28 13:33:18 2018 New Revision: 335919 URL: http://llvm.org/viewvc/llvm-project?rev=335919&view=rev Log: [CMake] Don't build Linux targets on Darwin in Fuchsia toolchain This is currently breaking because Linux target sysroots rely on case sensitive filesystem which is

[libcxx] r336713 - [CMake] Set per-runtime library directory suffix in runtimes build

2018-07-10 Thread Petr Hosek via cfe-commits
Author: phosek Date: Tue Jul 10 12:13:33 2018 New Revision: 336713 URL: http://llvm.org/viewvc/llvm-project?rev=336713&view=rev Log: [CMake] Set per-runtime library directory suffix in runtimes build Do not use LLVM_RUNTIMES_LIBDIR_SUFFIX variable which is an internal variable used by the runtime

[libcxxabi] r336713 - [CMake] Set per-runtime library directory suffix in runtimes build

2018-07-10 Thread Petr Hosek via cfe-commits
Author: phosek Date: Tue Jul 10 12:13:33 2018 New Revision: 336713 URL: http://llvm.org/viewvc/llvm-project?rev=336713&view=rev Log: [CMake] Set per-runtime library directory suffix in runtimes build Do not use LLVM_RUNTIMES_LIBDIR_SUFFIX variable which is an internal variable used by the runtime

[libunwind] r336713 - [CMake] Set per-runtime library directory suffix in runtimes build

2018-07-10 Thread Petr Hosek via cfe-commits
Author: phosek Date: Tue Jul 10 12:13:33 2018 New Revision: 336713 URL: http://llvm.org/viewvc/llvm-project?rev=336713&view=rev Log: [CMake] Set per-runtime library directory suffix in runtimes build Do not use LLVM_RUNTIMES_LIBDIR_SUFFIX variable which is an internal variable used by the runtime

r337117 - [CMake] Use libc++ and compiler-rt for sanitizers

2018-07-14 Thread Petr Hosek via cfe-commits
Author: phosek Date: Sat Jul 14 20:11:43 2018 New Revision: 337117 URL: http://llvm.org/viewvc/llvm-project?rev=337117&view=rev Log: [CMake] Use libc++ and compiler-rt for sanitizers When building runtimes for Linux as part of Fuchsia toolchain, use libc++ and compiler-rt for sanitizers. Differe

[libcxx] r337118 - [CMake] Use correct variable as header install prefix

2018-07-14 Thread Petr Hosek via cfe-commits
Author: phosek Date: Sat Jul 14 21:09:35 2018 New Revision: 337118 URL: http://llvm.org/viewvc/llvm-project?rev=337118&view=rev Log: [CMake] Use correct variable as header install prefix This variable is already set in CMakeLists.txt but it wasn't used which means that the headers get installed i

[libunwind] r374606 - [libunwind] Refactor CMake flag checks to match libc++ and libc++abi

2019-10-11 Thread Petr Hosek via cfe-commits
Author: phosek Date: Fri Oct 11 15:22:29 2019 New Revision: 374606 URL: http://llvm.org/viewvc/llvm-project?rev=374606&view=rev Log: [libunwind] Refactor CMake flag checks to match libc++ and libc++abi libunwind was using its own set of macros/functions for flag checking which was similar but dif

[libunwind] r374624 - [libunwind] Fix issues introduced in r374606

2019-10-11 Thread Petr Hosek via cfe-commits
Author: phosek Date: Fri Oct 11 18:50:57 2019 New Revision: 374624 URL: http://llvm.org/viewvc/llvm-project?rev=374624&view=rev Log: [libunwind] Fix issues introduced in r374606 There are few differences in compile flags introduced in r374606 which are causing libcxx-libcxxabi-libunwind-armv8-lin

[clang] 7fff716 - [CMake] Update Fuchsia build configuration

2019-10-24 Thread Petr Hosek via cfe-commits
Author: Petr Hosek Date: 2019-10-24T16:35:29-07:00 New Revision: 7fff716ec4741f84358a977ddf0cd5ccf448d5c5 URL: https://github.com/llvm/llvm-project/commit/7fff716ec4741f84358a977ddf0cd5ccf448d5c5 DIFF: https://github.com/llvm/llvm-project/commit/7fff716ec4741f84358a977ddf0cd5ccf448d5c5.diff LO

[clang] 1d09ecf - [CMake] Simplify CMake handling for zlib

2020-07-23 Thread Petr Hosek via cfe-commits
Author: Petr Hosek Date: 2020-07-23T14:47:25-07:00 New Revision: 1d09ecf36175f7910ffedd6d497c07b5c74c22fb URL: https://github.com/llvm/llvm-project/commit/1d09ecf36175f7910ffedd6d497c07b5c74c22fb DIFF: https://github.com/llvm/llvm-project/commit/1d09ecf36175f7910ffedd6d497c07b5c74c22fb.diff LO

[clang] 38c71b7 - Revert "[CMake] Simplify CMake handling for zlib"

2020-07-23 Thread Petr Hosek via cfe-commits
Author: Petr Hosek Date: 2020-07-23T15:12:42-07:00 New Revision: 38c71b7c85cac4c8de39329ff3ed682e63f61525 URL: https://github.com/llvm/llvm-project/commit/38c71b7c85cac4c8de39329ff3ed682e63f61525 DIFF: https://github.com/llvm/llvm-project/commit/38c71b7c85cac4c8de39329ff3ed682e63f61525.diff LO

Re: [PATCH] D79219: [CMake] Simplify CMake handling for zlib

2020-07-25 Thread Petr Hosek via cfe-commits
Thanks for the heads up, this should be addressed by c86f56e32e724c6018e579bb2bc11e667c96fc96, let me know if there are other issues. On Fri, Jul 24, 2020 at 12:33 PM Vedant Kumar via Phabricator < revi...@reviews.llvm.org> wrote: > vsk added a comment. > > @phosek I suspect this is causing a cma

[clang] 64d99cc - [CMake] Move find_package(ZLIB) to LLVMConfig

2020-07-27 Thread Petr Hosek via cfe-commits
Author: Petr Hosek Date: 2020-07-27T17:13:55-07:00 New Revision: 64d99cc6abed78c00a2a7863b02ce54911a5264f URL: https://github.com/llvm/llvm-project/commit/64d99cc6abed78c00a2a7863b02ce54911a5264f DIFF: https://github.com/llvm/llvm-project/commit/64d99cc6abed78c00a2a7863b02ce54911a5264f.diff LO

[clang] d510542 - [Fuchsia] Rely on linker switch rather than dead code ref for profile runtime

2020-06-04 Thread Petr Hosek via cfe-commits
Author: Petr Hosek Date: 2020-06-04T14:25:19-07:00 New Revision: d51054217403b47f452619e11318bd214749a845 URL: https://github.com/llvm/llvm-project/commit/d51054217403b47f452619e11318bd214749a845 DIFF: https://github.com/llvm/llvm-project/commit/d51054217403b47f452619e11318bd214749a845.diff LO

[clang] e1ab900 - Revert "[Fuchsia] Rely on linker switch rather than dead code ref for profile runtime"

2020-06-04 Thread Petr Hosek via cfe-commits
Author: Petr Hosek Date: 2020-06-04T15:44:10-07:00 New Revision: e1ab90001a0bac1d1bebe4116ce0e89567138283 URL: https://github.com/llvm/llvm-project/commit/e1ab90001a0bac1d1bebe4116ce0e89567138283 DIFF: https://github.com/llvm/llvm-project/commit/e1ab90001a0bac1d1bebe4116ce0e89567138283.diff LO

[clang] b16ed49 - [Fuchsia] Rely on linker switch rather than dead code ref for profile runtime

2020-06-04 Thread Petr Hosek via cfe-commits
Author: Petr Hosek Date: 2020-06-04T15:47:05-07:00 New Revision: b16ed493ddc22a100341b1e7d9b11282a8994e96 URL: https://github.com/llvm/llvm-project/commit/b16ed493ddc22a100341b1e7d9b11282a8994e96 DIFF: https://github.com/llvm/llvm-project/commit/b16ed493ddc22a100341b1e7d9b11282a8994e96.diff LO

[clang] a378c04 - [Fuchsia] Set projects and runtimes in the cache file

2020-07-05 Thread Petr Hosek via cfe-commits
Author: Petr Hosek Date: 2020-07-05T14:48:52-07:00 New Revision: a378c0449507e00e96534ff9ce9034e185425182 URL: https://github.com/llvm/llvm-project/commit/a378c0449507e00e96534ff9ce9034e185425182 DIFF: https://github.com/llvm/llvm-project/commit/a378c0449507e00e96534ff9ce9034e185425182.diff LO

[clang] 53e38c8 - [CMake][Fuchsia] Support for building with MSVC

2020-07-09 Thread Petr Hosek via cfe-commits
Author: Petr Hosek Date: 2020-07-09T13:07:12-07:00 New Revision: 53e38c85a8a6cdcf7776b936d72fb94ec737dc84 URL: https://github.com/llvm/llvm-project/commit/53e38c85a8a6cdcf7776b936d72fb94ec737dc84 DIFF: https://github.com/llvm/llvm-project/commit/53e38c85a8a6cdcf7776b936d72fb94ec737dc84.diff LO

[clang] ceb76d2 - [CMake][Fuchsia] Move runtimes to outer scope

2020-07-09 Thread Petr Hosek via cfe-commits
Author: Petr Hosek Date: 2020-07-09T21:07:44-07:00 New Revision: ceb76d2fe73d39f2230bf55d47b8fd68849d47d7 URL: https://github.com/llvm/llvm-project/commit/ceb76d2fe73d39f2230bf55d47b8fd68849d47d7 DIFF: https://github.com/llvm/llvm-project/commit/ceb76d2fe73d39f2230bf55d47b8fd68849d47d7.diff LO

[clang] 8c1a79d - [CMake] Simplify CMake handling for zlib

2020-07-14 Thread Petr Hosek via cfe-commits
Author: Petr Hosek Date: 2020-07-14T19:30:08-07:00 New Revision: 8c1a79dc12f3cc600e16153961cd8cc50ba2c33b URL: https://github.com/llvm/llvm-project/commit/8c1a79dc12f3cc600e16153961cd8cc50ba2c33b DIFF: https://github.com/llvm/llvm-project/commit/8c1a79dc12f3cc600e16153961cd8cc50ba2c33b.diff LO

[clang] 063128f - [Fuchsia] Build compiler-rt builtins for 32-bit x86

2020-04-24 Thread Petr Hosek via cfe-commits
Author: Petr Hosek Date: 2020-04-24T12:18:30-07:00 New Revision: 063128f97930c551a43a657084f1632e33245bf6 URL: https://github.com/llvm/llvm-project/commit/063128f97930c551a43a657084f1632e33245bf6 DIFF: https://github.com/llvm/llvm-project/commit/063128f97930c551a43a657084f1632e33245bf6.diff LO

[clang] 3ff7dcd - [CMake][Fuchsia] Include additional tools in the toolchain

2020-07-30 Thread Petr Hosek via cfe-commits
Author: Petr Hosek Date: 2020-07-30T13:08:02-07:00 New Revision: 3ff7dcded213844bcb0c1d55a1a66ad8fd9b483b URL: https://github.com/llvm/llvm-project/commit/3ff7dcded213844bcb0c1d55a1a66ad8fd9b483b DIFF: https://github.com/llvm/llvm-project/commit/3ff7dcded213844bcb0c1d55a1a66ad8fd9b483b.diff LO

[clang] 1adc494 - [CMake] Simplify CMake handling for zlib

2020-08-05 Thread Petr Hosek via cfe-commits
Author: Petr Hosek Date: 2020-08-05T16:07:11-07:00 New Revision: 1adc494bce44f6004994deed61b30d4b71fe1d05 URL: https://github.com/llvm/llvm-project/commit/1adc494bce44f6004994deed61b30d4b71fe1d05 DIFF: https://github.com/llvm/llvm-project/commit/1adc494bce44f6004994deed61b30d4b71fe1d05.diff LO

[clang] 633e3da - [CMake] Print the autodetected host linker version

2020-08-05 Thread Petr Hosek via cfe-commits
Author: Petr Hosek Date: 2020-08-05T20:22:28-07:00 New Revision: 633e3dacf27ea4950b7067803502490597ba96e0 URL: https://github.com/llvm/llvm-project/commit/633e3dacf27ea4950b7067803502490597ba96e0 DIFF: https://github.com/llvm/llvm-project/commit/633e3dacf27ea4950b7067803502490597ba96e0.diff LO

[clang] a4d78d2 - Revert "[CMake] Simplify CMake handling for zlib"

2020-08-08 Thread Petr Hosek via cfe-commits
Author: Petr Hosek Date: 2020-08-08T17:08:23-07:00 New Revision: a4d78d23c53451ccefe0df0adfff9a1ac3077f10 URL: https://github.com/llvm/llvm-project/commit/a4d78d23c53451ccefe0df0adfff9a1ac3077f10 DIFF: https://github.com/llvm/llvm-project/commit/a4d78d23c53451ccefe0df0adfff9a1ac3077f10.diff LO

[clang] 31e5f71 - [CMake] Simplify CMake handling for zlib

2020-08-11 Thread Petr Hosek via cfe-commits
Author: Petr Hosek Date: 2020-08-11T20:22:11-07:00 New Revision: 31e5f7120bdd2f76337686d9d169b1c00e6ee69c URL: https://github.com/llvm/llvm-project/commit/31e5f7120bdd2f76337686d9d169b1c00e6ee69c DIFF: https://github.com/llvm/llvm-project/commit/31e5f7120bdd2f76337686d9d169b1c00e6ee69c.diff LO

[clang] c8fbcb1 - [Clang] Pass --pack-dyn-relocs=relr to lld for Fuchsia

2020-05-09 Thread Petr Hosek via cfe-commits
Author: Petr Hosek Date: 2020-05-09T13:42:19-07:00 New Revision: c8fbcb1e78adcbaeadca9db9188771d81f49493a URL: https://github.com/llvm/llvm-project/commit/c8fbcb1e78adcbaeadca9db9188771d81f49493a DIFF: https://github.com/llvm/llvm-project/commit/c8fbcb1e78adcbaeadca9db9188771d81f49493a.diff LO

[clang] 5b02be0 - [Clang] Pass -z max-page-size to linker for Fuchsia

2020-05-09 Thread Petr Hosek via cfe-commits
Author: Petr Hosek Date: 2020-05-09T13:44:20-07:00 New Revision: 5b02be0b973a0d792bf8ce39170487f48b6cbd08 URL: https://github.com/llvm/llvm-project/commit/5b02be0b973a0d792bf8ce39170487f48b6cbd08 DIFF: https://github.com/llvm/llvm-project/commit/5b02be0b973a0d792bf8ce39170487f48b6cbd08.diff LO

[PATCH] D25117: Add driver support for Fuchsia

2016-09-30 Thread Petr Hosek via cfe-commits
phosek created this revision. phosek added a subscriber: cfe-commits. Provide toolchain and tool support for Fuchsia operating system. Fuchsia uses compiler-rt as the runtime library and libc++, libc++abi and libunwind as the C++ standard library. lld is used as a default linker. https://revie

[PATCH] D25117: Add driver support for Fuchsia

2016-09-30 Thread Petr Hosek via cfe-commits
phosek added a comment. The patch with LLVM triple for Fuchsia is here: https://reviews.llvm.org/D25116 https://reviews.llvm.org/D25117 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commit

[PATCH] D25256: [Driver] Print path to correct rtlib for -print_libgcc_file_name

2016-10-05 Thread Petr Hosek via cfe-commits
phosek created this revision. phosek added a subscriber: cfe-commits. phosek set the repository for this revision to rL LLVM. When compiler-rt is being used as a runtime library, Clang would print an invalid path when -print_libgcc_file_name option is used. We should print a path to compiler-rt

[PATCH] D25117: [Driver] Add driver support for Fuchsia

2016-10-05 Thread Petr Hosek via cfe-commits
phosek updated this revision to Diff 73562. Repository: rL LLVM https://reviews.llvm.org/D25117 Files: lib/Basic/Targets.cpp lib/Driver/Driver.cpp lib/Driver/ToolChains.cpp lib/Driver/ToolChains.h lib/Driver/Tools.cpp lib/Driver/Tools.h test/Driver/fuchsia.c test/Driver/fuchsia

[PATCH] D25263: [Driver] Allow setting the default linker during build

2016-10-05 Thread Petr Hosek via cfe-commits
phosek created this revision. phosek added a subscriber: cfe-commits. phosek set the repository for this revision to rL LLVM. Herald added subscribers: mgorny, beanz. This change allows setting the default linker used by the Clang driver when configuring the build. Repository: rL LLVM https:

r283420 - [Driver] Add driver support for Fuchsia

2016-10-05 Thread Petr Hosek via cfe-commits
Author: phosek Date: Thu Oct 6 01:08:09 2016 New Revision: 283420 URL: http://llvm.org/viewvc/llvm-project?rev=283420&view=rev Log: [Driver] Add driver support for Fuchsia Provide toolchain and tool support for Fuchsia operating system. Fuchsia uses compiler-rt as the runtime library and libc++,

[PATCH] D25117: [Driver] Add driver support for Fuchsia

2016-10-06 Thread Petr Hosek via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL283420: [Driver] Add driver support for Fuchsia (authored by phosek). Changed prior to commit: https://reviews.llvm.org/D25117?vs=73562&id=73784#toc Repository: rL LLVM https://reviews.llvm.org/D251

[PATCH] D25338: [Driver] Make -print-libgcc-file-name print compiler-rt lib when used

2016-10-10 Thread Petr Hosek via cfe-commits
phosek added a comment. I have submitted the same change https://reviews.llvm.org/D25256 a few days ago but this one seems to be getting more traction so I'm going to abandon mine in favor of this one. Comment at: lib/Driver/Driver.cpp:1000 +case ToolChain::RLT_CompilerRT

[PATCH] D25256: [Driver] Print path to correct rtlib for -print-libgcc-file-name

2016-10-10 Thread Petr Hosek via cfe-commits
phosek abandoned this revision. phosek added a comment. Michał Górny has submitted the same change as https://reviews.llvm.org/D25338 and his change seems to be getting more traction. Repository: rL LLVM https://reviews.llvm.org/D25256 ___ cfe-c

[PATCH] D25414: [libcxx] Add support for Fuchsia

2016-10-10 Thread Petr Hosek via cfe-commits
phosek added a comment. Currently yes, we've been using libc++ (and libc++abi which doesn't need any changes) for a few months now without any problems. Our C library is a fork of musl so we rely on all the changes that have already been done to support it. However, we're building libc++ with `

[PATCH] D25414: [libcxx] Add support for Fuchsia

2016-10-10 Thread Petr Hosek via cfe-commits
phosek added a comment. > That sounds fine. Shall I send it as a separate patch or update this one? > PS. If your not already locked into an ABI you'll want to look into enabling > the most recent ABI breaking changes. See the `_LIBCPP_ABI_VERSION` > configuration at the top of `__config` for

[libcxx] r283788 - [libcxx] Add support for Fuchsia

2016-10-10 Thread Petr Hosek via cfe-commits
Author: phosek Date: Mon Oct 10 13:53:32 2016 New Revision: 283788 URL: http://llvm.org/viewvc/llvm-project?rev=283788&view=rev Log: [libcxx] Add support for Fuchsia Fuchsia is a new operating system which uses musl as the standard C library, libc++ and libc++abi as the C++ standard library. Dif

[PATCH] D25491: [libcxx] Use C++14 when building libc++ with musl

2016-10-11 Thread Petr Hosek via cfe-commits
phosek created this revision. phosek added reviewers: EricWF, mclow.lists. phosek added a subscriber: cfe-commits. phosek set the repository for this revision to rL LLVM. Herald added subscribers: mgorny, beanz. musl's pthread implementations use volatile types in their structs which is not being

[PATCH] D25491: [libcxx] Use C++14 when building libc++ with musl

2016-10-11 Thread Petr Hosek via cfe-commits
phosek added a comment. libc++ was already building with musl after https://reviews.llvm.org/D21637 was commited, but this broke recently as a consequence of r282640 which introduced the use of `_LIBCPP_SAFE_STATIC` for libc++ internal globals. I'm not sure if this is the best solution, but it'

[PATCH] D25491: [libcxx] Use C++14 when building libc++ with musl

2016-10-11 Thread Petr Hosek via cfe-commits
phosek added inline comments. Comment at: CMakeLists.txt:327 # Required flags == set(LIBCXX_STANDARD_VER c++11 CACHE INTERNAL "internal option to change build dialect") add_compile_flags_if_supported(-std=${LIBCXX_ST

[PATCH] D25491: [libcxx] Use C++14 when building libc++ with musl

2016-10-12 Thread Petr Hosek via cfe-commits
phosek updated this revision to Diff 74402. phosek marked an inline comment as done. Repository: rL LLVM https://reviews.llvm.org/D25491 Files: CMakeLists.txt Index: CMakeLists.txt === --- CMakeLists.txt +++ CMakeLists.txt @@

[PATCH] D25491: [libcxx] Use C++14 when building libc++ with musl

2016-10-12 Thread Petr Hosek via cfe-commits
phosek updated this revision to Diff 74439. phosek marked an inline comment as done. Repository: rL LLVM https://reviews.llvm.org/D25491 Files: CMakeLists.txt Index: CMakeLists.txt === --- CMakeLists.txt +++ CMakeLists.txt @@

[PATCH] D25491: [libcxx] Use C++14 when building libc++ with musl

2016-10-14 Thread Petr Hosek via cfe-commits
phosek added a comment. Ping, do you have any other comments? Repository: rL LLVM https://reviews.llvm.org/D25491 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

r318853 - [CodeGen] Fix vtable not receiving hidden visibility when using push(visibility)

2017-11-22 Thread Petr Hosek via cfe-commits
Author: phosek Date: Wed Nov 22 09:59:30 2017 New Revision: 318853 URL: http://llvm.org/viewvc/llvm-project?rev=318853&view=rev Log: [CodeGen] Fix vtable not receiving hidden visibility when using push(visibility) This change should resolve https://bugs.llvm.org/show_bug.cgi?id=35022 Patch by Ja

r318866 - Revert "[CodeGen] Fix vtable not receiving hidden visibility when using push(visibility)"

2017-11-22 Thread Petr Hosek via cfe-commits
Author: phosek Date: Wed Nov 22 11:50:17 2017 New Revision: 318866 URL: http://llvm.org/viewvc/llvm-project?rev=318866&view=rev Log: Revert "[CodeGen] Fix vtable not receiving hidden visibility when using push(visibility)" This reverts commit r318853: tests are failing on Windows bots Removed:

r319088 - [CMake][Fuchsia] Disable terminfo database in Fuchsia toolchain

2017-11-27 Thread Petr Hosek via cfe-commits
Author: phosek Date: Mon Nov 27 12:29:13 2017 New Revision: 319088 URL: http://llvm.org/viewvc/llvm-project?rev=319088&view=rev Log: [CMake][Fuchsia] Disable terminfo database in Fuchsia toolchain It's used to determine whether terminal supports colors, but within LLVM it's only used in handful o

r319264 - [CMake] Use LIST_SEPARATOR rather than escaping in ExternalProject_Add

2017-11-28 Thread Petr Hosek via cfe-commits
Author: phosek Date: Tue Nov 28 16:23:10 2017 New Revision: 319264 URL: http://llvm.org/viewvc/llvm-project?rev=319264&view=rev Log: [CMake] Use LIST_SEPARATOR rather than escaping in ExternalProject_Add Escaping ; in list arguments passed to ExternalProject_Add doesn't seem to be working in newe

r319267 - [CMake] Support side-by-side checkouts in multi-stage build

2017-11-28 Thread Petr Hosek via cfe-commits
Author: phosek Date: Tue Nov 28 16:34:46 2017 New Revision: 319267 URL: http://llvm.org/viewvc/llvm-project?rev=319267&view=rev Log: [CMake] Support side-by-side checkouts in multi-stage build Passthrough LLVM_ENABLE_{PROJECTS,RUNTIMES} to followup stages to support the side-by-side checkouts (ak

[libcxx] r319515 - Include AddLLVM needed for tests in the right context

2017-11-30 Thread Petr Hosek via cfe-commits
Author: phosek Date: Thu Nov 30 19:16:50 2017 New Revision: 319515 URL: http://llvm.org/viewvc/llvm-project?rev=319515&view=rev Log: Include AddLLVM needed for tests in the right context AddLLVM is needed for several functions that are used in tests and as such needs to be included from the right

[libcxx] r319523 - [libcxx] Support getentropy as a source of randomness for std::random_device

2017-11-30 Thread Petr Hosek via cfe-commits
Author: phosek Date: Thu Nov 30 22:34:33 2017 New Revision: 319523 URL: http://llvm.org/viewvc/llvm-project?rev=319523&view=rev Log: [libcxx] Support getentropy as a source of randomness for std::random_device Use this source use on Fuchsia where this is the oficially way to obtain randomness. Th

r319720 - [CMake] Don't use comma as an alternate separator

2017-12-04 Thread Petr Hosek via cfe-commits
Author: phosek Date: Mon Dec 4 16:15:20 2017 New Revision: 319720 URL: http://llvm.org/viewvc/llvm-project?rev=319720&view=rev Log: [CMake] Don't use comma as an alternate separator Using comma can break in cases when we're passing flags that already use comma as a separator. Fixes PR35504. Di

[libunwind] r319823 - [libunwind] Pass LIBUNWIND_SYSROOT and LIBUNWIND_GCC_TOOLCHAIN to lit

2017-12-05 Thread Petr Hosek via cfe-commits
Author: phosek Date: Tue Dec 5 12:22:10 2017 New Revision: 319823 URL: http://llvm.org/viewvc/llvm-project?rev=319823&view=rev Log: [libunwind] Pass LIBUNWIND_SYSROOT and LIBUNWIND_GCC_TOOLCHAIN to lit These are expected to be set by the shared lit scripts used from libc++. Differential Revisio

[libunwind] r319830 - [libunwind][CMake] Set TARGET_TRIPLE if LIBUNWND_TARGET_TRIPLE is set

2017-12-05 Thread Petr Hosek via cfe-commits
Author: phosek Date: Tue Dec 5 12:48:05 2017 New Revision: 319830 URL: http://llvm.org/viewvc/llvm-project?rev=319830&view=rev Log: [libunwind][CMake] Set TARGET_TRIPLE if LIBUNWND_TARGET_TRIPLE is set This follows the setup used by other runtimes and is expected by the lit configuration. Diffe

[libcxxabi] r320445 - [libcxxabi] Pass LIBCXXABI_SYSROOT and LIBCXXABI_GCC_TOOLCHAIN to lit

2017-12-11 Thread Petr Hosek via cfe-commits
Author: phosek Date: Mon Dec 11 17:20:37 2017 New Revision: 320445 URL: http://llvm.org/viewvc/llvm-project?rev=320445&view=rev Log: [libcxxabi] Pass LIBCXXABI_SYSROOT and LIBCXXABI_GCC_TOOLCHAIN to lit These are expected to be set by the shared lit scripts used from libc++. Differential Revisio

[clang] 279ba53 - [Fuchsia][CMake] Disable LLVM plugin support

2022-08-29 Thread Petr Hosek via cfe-commits
Author: Petr Hosek Date: 2022-08-29T07:26:01Z New Revision: 279ba539a1dad609c8293b39a641d33814a2e2be URL: https://github.com/llvm/llvm-project/commit/279ba539a1dad609c8293b39a641d33814a2e2be DIFF: https://github.com/llvm/llvm-project/commit/279ba539a1dad609c8293b39a641d33814a2e2be.diff LOG: [F

[clang] c6a198c - [CMake][Fuchsia] Use unchecked hardening mode for libc++

2023-11-06 Thread Petr Hosek via cfe-commits
Author: Petr Hosek Date: 2023-11-06T22:37:49Z New Revision: c6a198c72ab0bae4bc8c322ce84feb691c190e5d URL: https://github.com/llvm/llvm-project/commit/c6a198c72ab0bae4bc8c322ce84feb691c190e5d DIFF: https://github.com/llvm/llvm-project/commit/c6a198c72ab0bae4bc8c322ce84feb691c190e5d.diff LOG: [C

[compiler-rt] [llvm] [clang] [Profile] Refactor profile correlation. (PR #70856)

2023-11-08 Thread Petr Hosek via cfe-commits
petrhosek wrote: > > What I think would be a better design is to just omit the respective > > sections altogether when -debug-info-correlate/-profile-correlate= is > > enabled. > > I don't understand how this solves the problem you described above. Can you > elaborate a bit more? We still nee

[clang] [clang] Remove fixed point arithmetic error (PR #71884)

2023-11-13 Thread Petr Hosek via cfe-commits
https://github.com/petrhosek approved this pull request. https://github.com/llvm/llvm-project/pull/71884 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Driver] Add ExclusiveGroup feature to multilib.yaml. (PR #69447)

2023-11-13 Thread Petr Hosek via cfe-commits
petrhosek wrote: I'm fine with the feature, my only concern is to make sure we don't unintentionally make it harder to integrate potential future extensions such as the mutually dependent groups. The only alternative I could come up with is representing groups as first class concept with prop

[clang-tools-extra] [mlir] [compiler-rt] [llvm] [lldb] [clang] [flang] [Profile] Add binary profile correlation for code coverage. (PR #69493)

2023-12-05 Thread Petr Hosek via cfe-commits
@@ -702,6 +708,8 @@ serializeValueProfDataFrom(ValueProfRecordClosure *Closure, #define INSTR_PROF_COVMAP_COMMON __llvm_covmap #define INSTR_PROF_COVFUN_COMMON __llvm_covfun #define INSTR_PROF_ORDERFILE_COMMON __llvm_orderfile petrhosek wrote: This just a nit,

[clang-tools-extra] [mlir] [compiler-rt] [llvm] [lldb] [clang] [flang] [Profile] Add binary profile correlation for code coverage. (PR #69493)

2023-12-05 Thread Petr Hosek via cfe-commits
petrhosek wrote: Can you break up all the changes to tests that replace `-debug-info-correlate` with `--profile-correlate=debug-info` into a separate PR to reduce the size of this PR? https://github.com/llvm/llvm-project/pull/69493 ___ cfe-commits ma

[llvm] [clang] [SpecialCaseList] Use glob by default (PR #74809)

2023-12-08 Thread Petr Hosek via cfe-commits
https://github.com/petrhosek approved this pull request. https://github.com/llvm/llvm-project/pull/74809 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Only build static analyzer sources if requested (PR #71653)

2023-11-14 Thread Petr Hosek via cfe-commits
@@ -23,7 +23,9 @@ add_subdirectory(Tooling) add_subdirectory(DirectoryWatcher) add_subdirectory(Index) add_subdirectory(IndexSerialization) -add_subdirectory(StaticAnalyzer) +if(CLANG_ENABLE_STATIC_ANALYZER) petrhosek wrote: I agree with @llvm-beanz but I'd pr

[clang] [Driver] Add ExclusiveGroup feature to multilib.yaml. (PR #69447)

2023-11-14 Thread Petr Hosek via cfe-commits
petrhosek wrote: > Would you accept `Type: Exclusive` instead of `Exclusive: True`? It seems > more plausible to me that there might be three kinds of group that _can't_ go > together than three group-type flags that you can have in any combination. I like this as it scales better to other typ

[llvm] [libcxx] [clang] [compiler-rt] fix python SyntaxWarnings in check-all output (PR #72538)

2023-11-16 Thread Petr Hosek via cfe-commits
https://github.com/petrhosek approved this pull request. https://github.com/llvm/llvm-project/pull/72538 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [compiler-rt] [Profile] Refactor profile correlation. (PR #70856)

2023-11-02 Thread Petr Hosek via cfe-commits
@@ -261,6 +261,9 @@ uint64_t __llvm_profile_get_magic(void); /*! \brief Get the version of the file format. */ uint64_t __llvm_profile_get_version(void); +/*! \brief If the binary is compiled with profile correlation. */ +int hasCorrelation(); petrhosek wrote:

[clang] [llvm] [compiler-rt] [Profile] Refactor profile correlation. (PR #70856)

2023-11-02 Thread Petr Hosek via cfe-commits
@@ -89,3 +89,7 @@ COMPILER_RT_VISIBILITY void __llvm_profile_reset_counters(void) { } lprofSetProfileDumped(0); } + +inline int hasCorrelation() { petrhosek wrote: The function should have a hidden visibility (the `COMPILER_RT_VISIBILITY` macro) so it's

[llvm] [clang] [compiler-rt] [Profile] Refactor profile correlation. (PR #70856)

2023-11-02 Thread Petr Hosek via cfe-commits
petrhosek wrote: I'm a bit concerned about the use of `hasCorrelation`. We require the runtime to check the flag and omit the data and names section if set which introduces a potential issue: since we emit the version in every TU and u se COMDAT to deduplicate them, but that means that if you

[clang] 71a4389 - [CMake][Fuchsia] Set the runtimes for the second stage

2023-11-06 Thread Petr Hosek via cfe-commits
Author: Petr Hosek Date: 2023-11-06T08:32:59Z New Revision: 71a43897d42c5e27f9fde1c3451c529c44dd337b URL: https://github.com/llvm/llvm-project/commit/71a43897d42c5e27f9fde1c3451c529c44dd337b DIFF: https://github.com/llvm/llvm-project/commit/71a43897d42c5e27f9fde1c3451c529c44dd337b.diff LOG: [C

[clang] [Clang][CMake] Support perf, LBR, and Instrument CLANG_BOLT options (PR #69133)

2023-11-06 Thread Petr Hosek via cfe-commits
@@ -6,15 +6,52 @@ import lit.util import os import subprocess -config.clang = os.path.realpath(lit.util.which('clang-bolt.inst', config.clang_tools_dir)).replace('\\', '/') +clang_binary = "clang" +perf_wrapper = "" +if config.clang_bolt_mode.lower() == "instrument": +cla

[clang] [Clang][CMake] Support perf, LBR, and Instrument CLANG_BOLT options (PR #69133)

2023-11-06 Thread Petr Hosek via cfe-commits
https://github.com/petrhosek edited https://github.com/llvm/llvm-project/pull/69133 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][CMake] Support perf, LBR, and Instrument CLANG_BOLT options (PR #69133)

2023-11-06 Thread Petr Hosek via cfe-commits
@@ -67,6 +67,67 @@ def merge_fdata(args): return 0 +def perf(args): +parser = argparse.ArgumentParser( +prog="perf-helper perf", description="perf wrapper for BOLT profile collection" +) +parser.add_argument( +"--lbr", action="store_true", hel

[clang] [Clang][CMake] Support perf, LBR, and Instrument CLANG_BOLT options (PR #69133)

2023-11-06 Thread Petr Hosek via cfe-commits
@@ -850,23 +850,38 @@ if (CLANG_ENABLE_BOOTSTRAP) endforeach() endif() -if (CLANG_BOLT_INSTRUMENT AND NOT LLVM_BUILD_INSTRUMENTED) +set(CLANG_BOLT "INSTRUMENT" CACHE STRING "Apply BOLT optimization to Clang. \ + May be specified as Instrument or Perf or LBR to use a particu

[clang] [Clang][InstrProf] Allow mix-up of absolute path with relative path on command line when using -fprofile-list= (PR #67519)

2023-12-11 Thread Petr Hosek via cfe-commits
https://github.com/petrhosek closed https://github.com/llvm/llvm-project/pull/67519 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][InstrProf] Allow mix-up of absolute path with relative path on command line when using -fprofile-list= (PR #67519)

2023-12-11 Thread Petr Hosek via cfe-commits
petrhosek wrote: I think we should close it, the current behavior is as expected. https://github.com/llvm/llvm-project/pull/67519 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CMake] Include opt-viewer in Fuchsia toolchain (PR #75296)

2023-12-13 Thread Petr Hosek via cfe-commits
https://github.com/petrhosek created https://github.com/llvm/llvm-project/pull/75296 This is necessary for visualization of optimization remarks. >From a35caa1369eabff183eb192fd4ad7566e55c8ea6 Mon Sep 17 00:00:00 2001 From: Petr Hosek Date: Wed, 13 Dec 2023 08:03:37 + Subject: [PATCH] [CMa

[clang] [RISCV][RFC] BareMetal multilibs YAML usage (PR #75191)

2023-12-13 Thread Petr Hosek via cfe-commits
petrhosek wrote: Regarding `-f[no-]exceptions` handling, see https://discourse.llvm.org/t/rfc-multilib/67494/32. https://github.com/llvm/llvm-project/pull/75191 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mai

[flang] [lldb] [clang-tools-extra] [clang] [mlir] [llvm] [compiler-rt] [Profile] Add binary profile correlation for code coverage. (PR #69493)

2023-12-13 Thread Petr Hosek via cfe-commits
https://github.com/petrhosek approved this pull request. https://github.com/llvm/llvm-project/pull/69493 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[libunwind] [libcxxabi] [libcxx] [runtimes] Don't link against compiler-rt explicitly when we use -nostdlib++ (PR #75089)

2023-12-13 Thread Petr Hosek via cfe-commits
petrhosek wrote: I'm trying to implement support for building libunwind, libc++abi and libc++ against LLVM libc in which case we won't be able to rely on `-nostdlib++`, we'll need to use `-nostdlib` to avoid linking the C library. We can still use `-nostdlib++` when LLVM libc isn't being used

[libunwind] [libcxx] [libcxxabi] [runtimes] Don't link against compiler-rt explicitly when we use -nostdlib++ (PR #75089)

2023-12-14 Thread Petr Hosek via cfe-commits
petrhosek wrote: > > I'm trying to implement support for building libunwind, libc++abi and > > libc++ against LLVM libc in which case we won't be able to rely on > > `-nostdlib++`, we'll need to use `-nostdlib` to avoid linking the C > > library. We can still use `-nostdlib++` when LLVM libc i

[libcxx] [compiler-rt] [libc] [llvm] [clang] [compiler-rt]Add lld into dependency for apple builds now that lld Mach-O backend is available (PR #75884)

2023-12-18 Thread Petr Hosek via cfe-commits
https://github.com/petrhosek approved this pull request. https://github.com/llvm/llvm-project/pull/75884 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] test-release.sh: Add a CMake cache file for 3-stage release builds (PR #75903)

2023-12-19 Thread Petr Hosek via cfe-commits
https://github.com/petrhosek approved this pull request. Out of curiosity, what's the reason for using 3-stage (rather than 2-stage) build? https://github.com/llvm/llvm-project/pull/75903 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https:/

[libunwind] [libunwind] Use -nostdlib++ when linking libunwind (PR #75646)

2023-12-19 Thread Petr Hosek via cfe-commits
https://github.com/petrhosek approved this pull request. https://github.com/llvm/llvm-project/pull/75646 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Sema] Provide `-fno-/-fvisibility-global-new-delete` option (PR #75364)

2023-12-19 Thread Petr Hosek via cfe-commits
petrhosek wrote: I don't think it's very clear from `-f[no-]visibility-global-new-delete` what the option does. How about `-f[no-]visibility-attribute-global-new-delete`? https://github.com/llvm/llvm-project/pull/75364 ___ cfe-commits mailing list cfe

[flang] [clang] [lld] [lldb] [libcxx] [mlir] [llvm] [compiler-rt] [builtins] Refactor cpu_model support to reduce #if nesting. NFCI (PR #75635)

2023-12-19 Thread Petr Hosek via cfe-commits
petrhosek wrote: We're still seeing the following error on our builders: ``` /b/s/w/ir/x/w/llvm_build/./bin/clang --target=aarch64-unknown-linux-gnu --sysroot=/b/s/w/ir/x/w/cipd/linux -DHAS_ASM_LSE -DVISIBILITY_HIDDEN --target=aarch64-unknown-linux-gnu -O2 -g -DNDEBUG -fno-lto -std=c11 -fPIC

[clang] [clang][CodeGen] Always use CLANG_VENDOR as a quoted string (PR #75935)

2023-12-19 Thread Petr Hosek via cfe-commits
https://github.com/petrhosek requested changes to this pull request. I agree with @smeenai, we shouldn't be setting `CLANG_VENDOR` as a global define. https://github.com/llvm/llvm-project/pull/75935 ___ cfe-commits mailing list cfe-commits@lists.llvm.

[compiler-rt] [lld] [lldb] [flang] [clang] [mlir] [llvm] [libcxx] [builtins] Refactor cpu_model support to reduce #if nesting. NFCI (PR #75635)

2023-12-20 Thread Petr Hosek via cfe-commits
petrhosek wrote: I have discovered another issue, on Fuchsia `libclang_rt.builtins.a` now has a reference to `getauxval` which it didn't have before. This is really undesirable because on Fuchsia, there's no `auxv` to begin with. I believe this is because before, the `__init_cpu_features` defi

[clang] [lldb] Reland "[clang][DebugInfo] Emit global variable definitions for static data members with constant initializers" (PR #71780)

2023-11-27 Thread Petr Hosek via cfe-commits
petrhosek wrote: Can we add back the constant to the declaration? It's been a week and the progress on #72730 seems to have stalled while our builders are still broken. https://github.com/llvm/llvm-project/pull/71780 ___ cfe-commits mailing list cfe-c

<    1   2   3   4   5   6   7   8   9   10   >