Skip to content

Commit

Permalink
use sudo
Browse files Browse the repository at this point in the history
  • Loading branch information
majetideepak committed Mar 4, 2024
1 parent ee0cd1e commit 46690ed
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion scripts/setup-helper-functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,6 @@ function cmake_install {
-DCMAKE_CXX_FLAGS="$COMPILER_FLAGS" \
-DBUILD_TESTING=OFF \
"$@"
ninja -C "${BINARY_DIR}" install
${SUDO} ninja -C "${BINARY_DIR}" install
}

14 changes: 7 additions & 7 deletions scripts/setup-ubuntu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -69,38 +69,38 @@ sudo --preserve-env apt update && sudo --preserve-env apt install -y libunwind-d

function install_fmt {
github_checkout fmtlib/fmt "${FMT_VERSION}"
cmake_install -DFMT_TEST=OFF
SUDO=sudo cmake_install -DFMT_TEST=OFF
}

function install_boost {
github_checkout boostorg/boost "${BOOST_VERSION}" --recursive
./bootstrap.sh --prefix=/usr/local
./b2 "-j$(nproc)" -d0 install threading=multi
sudo ./b2 "-j$(nproc)" -d0 install threading=multi
}

function install_folly {
github_checkout facebook/folly "${FB_OS_VERSION}"
cmake_install -DBUILD_TESTS=OFF -DFOLLY_HAVE_INT128_T=ON
SUDO=sudo cmake_install -DBUILD_TESTS=OFF -DFOLLY_HAVE_INT128_T=ON
}

function install_fizz {
github_checkout facebookincubator/fizz "${FB_OS_VERSION}"
cmake_install -DBUILD_TESTS=OFF -S fizz
SUDO=sudo cmake_install -DBUILD_TESTS=OFF -S fizz
}

function install_wangle {
github_checkout facebook/wangle "${FB_OS_VERSION}"
cmake_install -DBUILD_TESTS=OFF -S wangle
SUDO=sudo cmake_install -DBUILD_TESTS=OFF -S wangle
}

function install_mvfst {
github_checkout facebook/mvfst "${FB_OS_VERSION}"
cmake_install -DBUILD_TESTS=OFF
SUDO=sudo cmake_install -DBUILD_TESTS=OFF
}

function install_fbthrift {
github_checkout facebook/fbthrift "${FB_OS_VERSION}"
cmake_install -DBUILD_TESTS=OFF
SUDO=sudo cmake_install -DBUILD_TESTS=OFF
}

function install_conda {
Expand Down

0 comments on commit 46690ed

Please sign in to comment.