-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix how we choose the compiler to use in the third-party build
Summary: In this diff I am removing the use of the compiler-wrapper.sh script when building third-party dependencies from the yugabyte-db source tree, while also allowing the Linuxbrew path detection logic in common-build-env.sh to pick the default Linuxbrew location without relying on BUILD_ROOT being set when we are building third-party dependencies. Also back-porting other the relevant changes from https://github.com/yugabyte/yugabyte-db-thirdparty. Soon the thirdparty directory in the main https://github.com/yugabyte/yugabyte-db repository will be replaced with a submodule pointing to https://github.com/yugabyte/yugabyte-db-thirdparty, and this is a step towards bringing the third-party building scripts in both repositories more in sync. Here is a command that I've used to reconcile and reduce the set of differences between yugabyte-db/thirdparty and yugabyte-db-thirdparty codebases: diff -r \ '--exclude=.git' \ '--exclude=installed' \ '--exclude=build' \ '--exclude=src' \ '--exclude=.gitignore' \ '--exclude=*.pyc' \ '--exclude=*.sw?' --ignore-space-change \ ~/code/yugabyte-db-thirdparty \ ~/yugabyte-db/thirdparty Even with this diff applied the above command reports some differences, but those will be reconciled as part of replacing the thirdparty directory with a submodule. This diff also includes a fix for post_install.sh: when building with "downloadable" third-party dependencies and Linuxbrew that are installed in /opt/yb-build/..., we need to expand the Linuxbrew path using `os.path.realpath` before including it into the generated post_install.sh script. Test Plan: Jenkins: compile only - On a CentOS dev server: `./yb_build.sh tsan --clean --clean-thirdparty --no-nfs-shared-thirdparty` - On a macOS laptop: `./yb_build.sh --clean --clean-thirdparty` Reviewers: dmitry, sergei Reviewed By: sergei Subscribers: ybase Differential Revision: https://phabricator.dev.yugabyte.com/D7851
- Loading branch information
Showing
14 changed files
with
130 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.