-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Add boost to resolve_dependency #3488
Conversation
✅ Deploy Preview for meta-velox canceled.
|
e30dae8
to
b10f2e5
Compare
On circleci cloning everything only takes 2 minutes ... so that can probably wait for a follow-up:shrug: |
I have created #3489 to add icu to the images. |
If we use system boost the |
7805c79
to
cb60e65
Compare
cb60e65
to
5c458e7
Compare
97c8a63
to
d9074bb
Compare
@@ -306,41 +320,33 @@ find_library(EVENT event) | |||
|
|||
find_library(DOUBLE_CONVERSION double-conversion) | |||
|
|||
find_package(ZLIB) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
required for boost
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: Add this as a comment..
d9074bb
to
278e2ed
Compare
2ab70d6
to
f2f77d1
Compare
This is now ready :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, some minor nits.
.circleci/config.yml
Outdated
@@ -236,6 +236,7 @@ jobs: | |||
- run: | |||
name: "Build" | |||
command: | | |||
dnf install -y libicu-devel |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we should probably move it to the setup-* scripts and have it baked in the docker images- So that its easy to repro problems rather than trying to wonder why build isnt working.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah yes agreed, this is from before the ICU PR :D
@@ -0,0 +1 @@ | |||
set(Boost_FOUND TRUE) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: Why are these CMake//Find files required ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To override the modules that come with cmake. As they look for already built libs at configure time (aka when we haven't built the dependencies yet) they won't find them.
Cmake >= 3.24 comes with a built in way to do this (OVERRIDE_FIND_PACKAGE
) which I tested and works great but that is out of reach for now :D
@@ -306,41 +320,33 @@ find_library(EVENT event) | |||
|
|||
find_library(DOUBLE_CONVERSION double-conversion) | |||
|
|||
find_package(ZLIB) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: Add this as a comment..
ThirdpartyToolchain.cmake
Outdated
if(DEFINED ENV{VELOX_BOOST_URL}) | ||
set(BOOST_SOURCE_URL "$ENV{VELOX_BOOST_URL}") | ||
else() | ||
# We need to sue boost > 1.70 to build it with CMake |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: s/sue/use
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also maybe change comment to say 1.80
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The boost repo contains cmake files starting in 1.70 so bit is correct though I have not tested it with a lower version and there were likely changes since then...
ThirdpartyToolchain.cmake
Outdated
list(TRANSFORM numeric_subdirs APPEND /include) | ||
include_directories(${boost_INCLUDE_DIRS} ${numeric_subdirs}) | ||
|
||
# this prevents system boost from leaking in |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: s/this/This
475b781
to
02b2071
Compare
@kgpai has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
We need to host a pruned version of the boost source as cloning from git with all submodules takes a long time (xx mins).
Or we could use
GIT_SUBMODULES <module>...
to list the submodules explicitly (which would still take longer than downloading a already pruned archive)