|
@@ -35,7 +35,7 @@ echo "Download statics from $URL ..."
|
|
wget -qO- "$URL" | tar -xz -C ./libs/mORMot/static
|
|
wget -qO- "$URL" | tar -xz -C ./libs/mORMot/static
|
|
|
|
|
|
# uncomment for fixed commit URL
|
|
# uncomment for fixed commit URL
|
|
-URL=https://github.com/synopse/mORMot2/tarball/527b3fb11cb4dad5f2c03ace293b550f85504420
|
|
|
|
|
|
+URL=https://github.com/synopse/mORMot2/tarball/f0fc66c954cd45f5c581e52c21170923805a683b
|
|
#URL="https://api.github.com/repos/synopse/mORMot2/tarball/$USED_TAG"
|
|
#URL="https://api.github.com/repos/synopse/mORMot2/tarball/$USED_TAG"
|
|
echo "Download and unpacking mORMot sources from $URL ..."
|
|
echo "Download and unpacking mORMot sources from $URL ..."
|
|
wget -qO- "$URL" | tar -xz -C ./libs/mORMot --strip-components=1
|
|
wget -qO- "$URL" | tar -xz -C ./libs/mORMot --strip-components=1
|
|
@@ -72,7 +72,7 @@ fi
|
|
# Warning: (5090) Variable XXX of a managed type does not seem to be initialized
|
|
# Warning: (5090) Variable XXX of a managed type does not seem to be initialized
|
|
SUPRESS_WARN=-vm11047,6058,5092,5091,5060,5058,5057,5028,5024,5023,4081,4079,4055,3187,3124,3123,5059,5036,5089,5090
|
|
SUPRESS_WARN=-vm11047,6058,5092,5091,5060,5058,5057,5028,5024,5023,4081,4079,4055,3187,3124,3123,5059,5036,5089,5090
|
|
echo "Start compiling..."
|
|
echo "Start compiling..."
|
|
-fpc -MDelphi -Sci -Ci -O4 -g -gl -gw2 -Xg -k'-rpath=$ORIGIN' -k-L$BIN \
|
|
|
|
|
|
+fpc -MDelphi -Sci -Ci -O3 -g -gl -gw2 -Xg -k'-rpath=$ORIGIN' -k-L$BIN \
|
|
-T$TARGET -P$ARCH \
|
|
-T$TARGET -P$ARCH \
|
|
-veiq -v-n-h- $SUPRESS_WARN \
|
|
-veiq -v-n-h- $SUPRESS_WARN \
|
|
-Fi"$BIN/fpc-$ARCH_TG/.dcu" -Fi"$MSRC" \
|
|
-Fi"$BIN/fpc-$ARCH_TG/.dcu" -Fi"$MSRC" \
|
|
@@ -80,7 +80,7 @@ fpc -MDelphi -Sci -Ci -O4 -g -gl -gw2 -Xg -k'-rpath=$ORIGIN' -k-L$BIN \
|
|
-Fu"$MSRC/core" -Fu"$MSRC/db" -Fu"$MSRC/rest" -Fu"$MSRC/crypt" \
|
|
-Fu"$MSRC/core" -Fu"$MSRC/db" -Fu"$MSRC/rest" -Fu"$MSRC/crypt" \
|
|
-Fu"$MSRC/app" -Fu"$MSRC/net" -Fu"$MSRC/lib" -Fu"$MSRC/orm" -Fu"$MSRC/soa" \
|
|
-Fu"$MSRC/app" -Fu"$MSRC/net" -Fu"$MSRC/lib" -Fu"$MSRC/orm" -Fu"$MSRC/soa" \
|
|
-FU"$BIN/fpc-$ARCH_TG/.dcu" -FE"$BIN/fpc-$ARCH_TG" -o"$BIN/fpc-$ARCH_TG/$dest_fn" \
|
|
-FU"$BIN/fpc-$ARCH_TG/.dcu" -FE"$BIN/fpc-$ARCH_TG" -o"$BIN/fpc-$ARCH_TG/$dest_fn" \
|
|
- -dFPC_LIBCMM \
|
|
|
|
|
|
+ -dFPC_LIBCMM -dFPC_LIBCMM_NOMSIZE \
|
|
-B -Se1 "./src/raw.pas" | grep "[Warning|Error|Fatal]:"
|
|
-B -Se1 "./src/raw.pas" | grep "[Warning|Error|Fatal]:"
|
|
|
|
|
|
script_successful
|
|
script_successful
|