-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TBB : Update to new build system & added CMake support patch #105
Conversation
Hey Alex, |
Hey John, Yep I should sleep but nope. There is a bit of a discussion here about it: The official way to build TBB tends to really "suck" in terms of needing to open up Visual Studio and convert their project to 2017 first and then build with the UI, it makes it problematic to do CI type builds. I see that they have some python build script now that they didn't have before, but from reading that issue I'm not the most confident that it'll be as easy and straightforward than the CMake solution. Maybe we can keep the ./configure+make for Linux/macOS and apply this patch for Windows-only? |
Is there any mileage in the suggestions from this comment on that thread?
I'd be happier if it was a Windows-only thing, for sure. Is the CMakeLists.txt in the patch a copy of Wenzel Jakob's CMake setup? If so, we would need to check the license and include it in the file. But if there's an official way of building without having to maintain additional stuff, that would be preferable to my mind... |
One glaring problem is that it uses mingw32/mingw64 so the symbols probably won't link with VS2017. That and windows users would need to install msys/mingw.
He didn't make any license but in my patch file I do link his Github repo.
Oh damn you're really not going to like it then when I try to introduce the third party build system for Python then! :) (Fortunately that one I think Eric found a URL package for it and it's not a big patch file). |
https://github.com/wjakob/tbb/blob/master/LICENSE
Probably not! It's really hard for me to comment with any authority because I don't even have a Windows box for testing, but I think there is a lot of value in minimising the amount of additional stuff that needs to be maintained. At the end of the day though, as long as the Linux/OSX stuff remains simple, and you assure me any additional Windows complexity is genuinely warranted, I won't have much choice... |
I'm pretty sure that is just the regular TBB license though.
That's fair enough, in this case I think the pros outweigh the cons (especially for CI and easily changing to debug builds as well), and it looks like Wenzel Jakob is reluctantly committed to maintaining his CMake scripts. I'll tweak this commit to revert to the old make scripts later tonight and we can do the Windows thing at a later date. |
Maybe so. In any case, it applies to what's in that repo, and it says this :
Looks like you didn't get the chance? No worries, I'll close this and move it up myself, and we can worry about the CMake stuff later. Now I think about it, maybe we should just point the download URL to the releases from wjakob and then we don't need to worry about the license at all...and we'll have a tighter guarantee that his scripts work with the specific version we're building... |
Tested on Linux.