Skip to content

Commit

Permalink
deps: avoid to rebuild gcc everytime
Browse files Browse the repository at this point in the history
  • Loading branch information
sgadrat committed Apr 5, 2024
1 parent 7e7dca2 commit 7a5058d
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion deps/build-deps.d/01-gcc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,17 @@ build_gcc() {
./build.sh
}

get_gcc() {
cd "$out_dir"
mkdir -p gcc-6502-bits
cd gcc-6502-bits
curl -L https://github.com/sgadrat/gcc-6502-bits/releases/download/v8.4.1-2/gcc-6502.zip > gcc-6502.zip
unzip gcc-6502.zip
rm gcc-6502.zip
tar xf prefix.tar
rm prefix.tar
}

install_gcc_build_dependencies
build_gcc
#build_gcc # Equivalent to get_gcc, but way slower
get_gcc

0 comments on commit 7a5058d

Please sign in to comment.