Skip to content

Commit

Permalink
build: Reformat files and remove gcc-10 from linux build script
Browse files Browse the repository at this point in the history
  • Loading branch information
sitaowang1998 committed Nov 4, 2024
1 parent 9279830 commit b3c3620
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 27 deletions.
2 changes: 1 addition & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
"dockerfile": "Dockerfile",
"context": "..",
},
}
}
41 changes: 15 additions & 26 deletions tools/scripts/lib_install/linux/install-dev.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,29 +8,18 @@ set -u

apt-get update
DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y \
ca-certificates \
checkinstall \
cmake \
curl \
g++ \
g++-10 \
gcc \
gcc-10 \
git \
libcurl4 \
libcurl4-openssl-dev \
libssl-dev \
make \
pkg-config \
python3 \
python3-pip \
python3-venv

# Add alternatives for cpp-10, gcc-10, and g++-10
# NOTE: We use a low priority to avoid affecting the prioritization of any existing alternatives
# on the user's system.
update-alternatives --install /usr/bin/cc cc /usr/bin/gcc-10 0 \
--slave /usr/share/man/man1/cc.1.gz cc.1.gz /usr/share/man/man1/gcc.1.gz
update-alternatives --install /usr/bin/c++ c++ /usr/bin/g++-10 0 \
--slave /usr/share/man/man1/c++.1.gz c++.1.gz /usr/share/man/man1/g++.1.gz
update-alternatives --install /lib/cpp cpp /usr/bin/cpp-10 0
ca-certificates \
checkinstall \
cmake \
curl \
g++ \
gcc \
git \
libcurl4 \
libcurl4-openssl-dev \
libssl-dev \
make \
pkg-config \
python3 \
python3-pip \
python3-venv

0 comments on commit b3c3620

Please sign in to comment.