forked from chipsalliance/verible
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update every release platform to gcc-9
- Loading branch information
Showing
5 changed files
with
27 additions
and
12 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,9 @@ | ||
# Install C++ compiler | ||
RUN yum -y group install --nogpgcheck "Development Tools" || \ | ||
yum -y groupinstall --nogpgcheck "Development Tools" | ||
# Link libstdc++ statically so people don't have to install devtoolset-8 | ||
# just to use verible. | ||
ENV BAZEL_LINKOPTS "-static-libstdc++:-lm -static-libstdc++:-lrt" | ||
ENV BAZEL_LINKLIBS "-l%:libstdc++.a" | ||
|
||
RUN gcc --version | ||
RUN g++ --version | ||
# Get a newer GCC version | ||
RUN yum install -y --nogpgcheck gcc-toolset-9-toolchain | ||
|
||
SHELL [ "scl", "enable", "gcc-toolset-9" ] |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
RUN add-apt-repository ppa:ubuntu-toolchain-r/test; apt-get update | ||
RUN apt-get install -y \ | ||
build-essential \ | ||
g++-9 \ | ||
gcc-9 | ||
|
||
RUN ln -sf /usr/bin/gcc-9 /usr/bin/gcc | ||
RUN ln -sf /usr/bin/g++-9 /usr/bin/g++ | ||
|
||
# Link libstdc++ statically | ||
ENV BAZEL_LINKOPTS "-static-libstdc++:-lm" | ||
ENV BAZEL_LINKLIBS "-l%:libstdc++.a" |
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