mirror of
https://github.com/thiagoralves/OpenPLC_v3.git
synced 2026-02-06 02:02:20 +08:00
add alpine to compile_program.sh
This commit is contained in:
@@ -147,6 +147,7 @@ elif [ "$1" == "alpine" ]; then
|
||||
fi
|
||||
echo "Compilation finished successfully!"
|
||||
|
||||
touch ../etc/alpine
|
||||
cd ../scripts
|
||||
./change_hardware_layer.sh blank_linux
|
||||
|
||||
|
||||
@@ -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!"
|
||||
|
||||
Reference in New Issue
Block a user