Skip to content

Commit

Permalink
fix gcc version error
Browse files Browse the repository at this point in the history
  • Loading branch information
MXWXZ committed Aug 30, 2024
1 parent 7a6796d commit 0ace22f
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions Cross.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
[target.x86_64-unknown-linux-gnu]
pre-build = [
"apt-get update && apt-get remove -y gcc g++ && apt-get install -y gcc-10 g++-10",
"ln -s /usr/bin/gcc-10 /usr/bin/gcc",
"ln -s /usr/bin/g++-10 /usr/bin/g++",
]

[target.i686-unknown-linux-gnu]
pre-build = [
"apt-get update && apt-get remove -y gcc g++ && apt-get install -y gcc-10 g++-10",
"ln -s /usr/bin/gcc-10 /usr/bin/gcc",
"ln -s /usr/bin/g++-10 /usr/bin/g++",
"apt-get update && apt-get install --assume-yes unzip",
"curl -LO https://github.com/protocolbuffers/protobuf/releases/download/v27.3/protoc-27.3-linux-x86_64.zip",
"unzip protoc-27.3-linux-x86_64.zip -d $HOME/.local",
Expand All @@ -9,6 +19,9 @@ pre-build = [

[target.aarch64-unknown-linux-gnu]
pre-build = [
"apt-get update && apt-get remove -y gcc g++ && apt-get install -y gcc-10 g++-10",
"ln -s /usr/bin/gcc-10 /usr/bin/gcc",
"ln -s /usr/bin/g++-10 /usr/bin/g++",
"apt-get update && apt-get install --assume-yes unzip",
"curl -LO https://github.com/protocolbuffers/protobuf/releases/download/v27.3/protoc-27.3-linux-x86_64.zip",
"unzip protoc-27.3-linux-x86_64.zip -d $HOME/.local",
Expand Down

0 comments on commit 0ace22f

Please sign in to comment.