Parcourir la source

Merge pull request #196 from GWRon/fix_build_release_bcc

Fix: Use "final" bcc and module compilates for subsequential build commands
Brucey il y a 10 mois
Parent
commit
c44748fe08
1 fichiers modifiés avec 13 ajouts et 0 suppressions
  1. 13 0
      src/scripts/build_release.sh

+ 13 - 0
src/scripts/build_release.sh

@@ -824,6 +824,14 @@ build_apps() {
 				exit -1
 			fi
 			cp temp/BlitzMax/src/bcc/bcc$C_EXT release/BlitzMax/bin
+			# build using the latest bcc
+			cp temp/BlitzMax/src/bcc/bcc$C_EXT temp/BlitzMax/bin
+
+			# clean build with the latest modules
+			echo ""
+			echo "Reset modules to rebuilt them with new bcc"
+			rm -rf temp/BlitzMax/mod
+			cp -R release/BlitzMax/mod temp/BlitzMax
 
 			# build latest bmk
 			echo "Building latest bmk"
@@ -836,6 +844,11 @@ build_apps() {
 			cp temp/BlitzMax/src/bmk/core.bmk release/BlitzMax/bin && \
 			cp temp/BlitzMax/src/bmk/custom.bmk release/BlitzMax/bin && \
 			cp temp/BlitzMax/src/bmk/make.bmk release/BlitzMax/bin
+			# build using the latest bmk
+			cp temp/BlitzMax/src/bmk/bmk$C_EXT temp/BlitzMax/bin && \
+			cp temp/BlitzMax/src/bmk/core.bmk temp/BlitzMax/bin && \
+			cp temp/BlitzMax/src/bmk/custom.bmk temp/BlitzMax/bin && \
+			cp temp/BlitzMax/src/bmk/make.bmk temp/BlitzMax/bin
 
 			# build bootstrap
 			if [ ! -z "$BUILD_BOOTSTRAP" ];then