Henrique Jung via llvm-dev
2017-Oct-09 04:36 UTC
[llvm-dev] [PATCH] [CMake] Allow parent projects to use in-source builds
Hi Would the maintainers please consider merging the attached patch? Detailed description of my problem is on the commit log. I tracked down this build-time check back to a commit by Oscar Fuentes in 2008 (https://github.com/llvm-mirror/llvm/commit/ 6326a0d5090110c334a3a554bfb10b37a6fe4709) and hasn't been changed since. It seems to be unnecessary to prevent a parent project from doing in-source builds. I ran my project with `make` and it seems to have solved my problem. LLVM now builds out-of-tree while my project can be built in-tree. I ran 'make check-llvm' to test it, which gave me this result. Testing Time: 121.05s Expected Passes : 21278 Expected Failures : 220 Unsupported Tests : 788 [100%] Built target check-llvm However I couldn't build `make check-llvm` using in-tree builds, I had to fall back to out-of-tree builds. So to summarize: now LLVM can be part of a parent project that uses in-source builds, but the tests must still be built out-of-tree. If the maintainers are OK with this limitation, the patch is ready. Otherwise I'd have to track down what changes are necessary on the test targets. Best regards Henrique Jung -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20171009/53fb7427/attachment.html> -------------- next part -------------- A non-text attachment was scrubbed... Name: 0001-CMake-Allow-parent-projects-to-use-in-source-builds.patch Type: text/x-patch Size: 1664 bytes Desc: not available URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20171009/53fb7427/attachment.bin>
Chris Bieneman via llvm-dev
2017-Oct-09 17:25 UTC
[llvm-dev] [PATCH] [CMake] Allow parent projects to use in-source builds
This patch looks reasonable to me. Thank you for submitting it. Is it correct to assume you don't have commit access? If you don't I can commit it for you later today. -Chris> On Oct 8, 2017, at 9:36 PM, Henrique Jung via llvm-dev <llvm-dev at lists.llvm.org> wrote: > > Hi > > Would the maintainers please consider merging the attached patch? Detailed description of my problem is on the commit log. > > I tracked down this build-time check back to a commit by Oscar Fuentes in 2008 (https://github.com/llvm-mirror/llvm/commit/6326a0d5090110c334a3a554bfb10b37a6fe4709 <https://github.com/llvm-mirror/llvm/commit/6326a0d5090110c334a3a554bfb10b37a6fe4709>) and hasn't been changed since. It seems to be unnecessary to prevent a parent project from doing in-source builds. > > I ran my project with `make` and it seems to have solved my problem. LLVM now builds out-of-tree while my project can be built in-tree. > > I ran 'make check-llvm' to test it, which gave me this result. > > Testing Time: 121.05s > Expected Passes : 21278 > Expected Failures : 220 > Unsupported Tests : 788 > [100%] Built target check-llvm > > However I couldn't build `make check-llvm` using in-tree builds, I had to fall back to out-of-tree builds. So to summarize: now LLVM can be part of a parent project that uses in-source builds, but the tests must still be built out-of-tree. If the maintainers are OK with this limitation, the patch is ready. Otherwise I'd have to track down what changes are necessary on the test targets. > > Best regards > Henrique Jung > > <0001-CMake-Allow-parent-projects-to-use-in-source-builds.patch>_______________________________________________ > LLVM Developers mailing list > llvm-dev at lists.llvm.org > http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20171009/02b6e1bd/attachment.html>
Henrique Jung via llvm-dev
2017-Oct-09 22:17 UTC
[llvm-dev] [PATCH] [CMake] Allow parent projects to use in-source builds
Hi Chris Thanks for reviewing. I do not have commit access, this is my first contribution to LLVM. So I ask you to commit for me. Thanks On 9 October 2017 at 14:25, Chris Bieneman <beanz at apple.com> wrote:> This patch looks reasonable to me. Thank you for submitting it. > > Is it correct to assume you don't have commit access? If you don't I can > commit it for you later today. > > -Chris > > On Oct 8, 2017, at 9:36 PM, Henrique Jung via llvm-dev < > llvm-dev at lists.llvm.org> wrote: > > Hi > > Would the maintainers please consider merging the attached patch? Detailed > description of my problem is on the commit log. > > I tracked down this build-time check back to a commit by Oscar Fuentes in > 2008 (https://github.com/llvm-mirror/llvm/commit/6326a0d5090110c3 > 34a3a554bfb10b37a6fe4709) and hasn't been changed since. It seems to be > unnecessary to prevent a parent project from doing in-source builds. > > I ran my project with `make` and it seems to have solved my problem. LLVM > now builds out-of-tree while my project can be built in-tree. > > I ran 'make check-llvm' to test it, which gave me this result. > > Testing Time: 121.05s > Expected Passes : 21278 > Expected Failures : 220 > Unsupported Tests : 788 > [100%] Built target check-llvm > > However I couldn't build `make check-llvm` using in-tree builds, I had to > fall back to out-of-tree builds. So to summarize: now LLVM can be part of a > parent project that uses in-source builds, but the tests must still be > built out-of-tree. If the maintainers are OK with this limitation, the > patch is ready. Otherwise I'd have to track down what changes are necessary > on the test targets. > > Best regards > Henrique Jung > > <0001-CMake-Allow-parent-projects-to-use-in-source-builds.patch> > _______________________________________________ > LLVM Developers mailing list > llvm-dev at lists.llvm.org > http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev > > >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20171009/816506b2/attachment.html>
Seemingly Similar Threads
- [PATCH] [CMake] Allow parent projects to use in-source builds
- [PATCH] [CMake] Allow parent projects to use in-source builds
- [LLVMdev] [RFC] Raise minimum required CMake version to 3.0
- [LLVMdev] [RFC] Raise minimum required CMake version to 3.0
- [LLVMdev] [RFC] Raise minimum required CMake version to 3.0