add alpine to compile_program.sh

This commit is contained in:
GP Orcullo
2022-03-27 02:14:43 +00:00
parent cf52e8e9dd
commit 1e3dbebe01
2 changed files with 6 additions and 1 deletions

View File

@@ -147,6 +147,7 @@ elif [ "$1" == "alpine" ]; then
fi
echo "Compilation finished successfully!"
touch ../etc/alpine
cd ../scripts
./change_hardware_layer.sh blank_linux

View File

@@ -13,7 +13,11 @@ echo ""
if [ "$OPENPLC_PLATFORM" = "linux" ]; then
cd ../build
cmake .. -Dprogram_name=$1
x=OFF
if [ -e ../etc/alpine ]; then
x=ON
fi
cmake .. -Dprogram_name=$1 -DOPLC_MUSL=$x
cmake --build .
if [ $? -ne 0 ]; then
echo "Compilation finished with errors!"