Skip to content

Commit 3aa020d

Browse files
assignUserfacebook-github-bot
authored andcommitted
Fix fbthrift build in setup-*.sh (facebookincubator#9204)
Summary: In the new fbthrift version from facebookincubator#8950 a command fails if `BUILD_SHARED_LIBS` is not explicitly set (because its empty by default). This PR explicitly sets BUILD_SHARED_LIBS when building fbthrift and also uses the correct flag to disable tests in addition to the default cmake one. Pull Request resolved: facebookincubator#9204 Reviewed By: kevinwilfong Differential Revision: D55337270 Pulled By: pedroerp fbshipit-source-id: 6d77d10e5a1ed0379f52177edf8753246b1e8a6e
1 parent c4f3225 commit 3aa020d

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

scripts/setup-centos8.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ function install_fbthrift {
145145
wget_and_untar https://github.com/facebook/fbthrift/archive/refs/tags/${FB_OS_VERSION}.tar.gz fbthrift
146146
(
147147
cd fbthrift
148-
cmake_install -Denable_tests=OFF
148+
cmake_install -Denable_tests=OFF -DBUILD_TESTS=OFF -DBUILD_SHARED_LIBS=OFF
149149
)
150150
}
151151

scripts/setup-macos.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ function install_mvfst {
9797

9898
function install_fbthrift {
9999
github_checkout facebook/fbthrift "${FB_OS_VERSION}"
100-
cmake_install -DBUILD_TESTS=OFF
100+
cmake_install -Denable_tests=OFF -DBUILD_TESTS=OFF -DBUILD_SHARED_LIBS=OFF
101101
}
102102

103103
function install_double_conversion {

scripts/setup-ubuntu.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ function install_mvfst {
102102

103103
function install_fbthrift {
104104
github_checkout facebook/fbthrift "${FB_OS_VERSION}"
105-
cmake_install -DBUILD_TESTS=OFF
105+
cmake_install -Denable_tests=OFF -DBUILD_TESTS=OFF -DBUILD_SHARED_LIBS=OFF
106106
}
107107

108108
function install_conda {

0 commit comments

Comments
 (0)