mirror of
https://github.com/roc-lang/roc.git
synced 2024-10-26 18:28:43 +03:00
optimize basic platform builds
This commit is contained in:
parent
3d8884a96d
commit
5d27ee2c17
@ -36,14 +36,14 @@ mv roc_nightly* roc_nightly
|
|||||||
cd roc_nightly
|
cd roc_nightly
|
||||||
|
|
||||||
# build the basic cli platform
|
# build the basic cli platform
|
||||||
./roc build ../basic-cli/examples/countdown.roc
|
./roc build ../basic-cli/examples/countdown.roc --optimize
|
||||||
|
|
||||||
# We need this extra variable so we can safely check if $2 is empty later
|
# We need this extra variable so we can safely check if $2 is empty later
|
||||||
EXTRA_ARGS=${2:-}
|
EXTRA_ARGS=${2:-}
|
||||||
|
|
||||||
# In some rare cases it's nice to be able to use the legacy linker, so we produce the .o file to be able to do that
|
# In some rare cases it's nice to be able to use the legacy linker, so we produce the .o file to be able to do that
|
||||||
if [ -n "${EXTRA_ARGS}" ];
|
if [ -n "${EXTRA_ARGS}" ];
|
||||||
then ./roc build $EXTRA_ARGS ../basic-cli/examples/countdown.roc
|
then ./roc build $EXTRA_ARGS ../basic-cli/examples/countdown.roc --optimize
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cd ..
|
cd ..
|
||||||
|
@ -42,7 +42,7 @@ cd roc_nightly
|
|||||||
# prevent https://github.com/roc-lang/basic-webserver/issues/9
|
# prevent https://github.com/roc-lang/basic-webserver/issues/9
|
||||||
if [ "$OS" != "Linux" ] || [ "$ARCH" != "x86_64" ]; then
|
if [ "$OS" != "Linux" ] || [ "$ARCH" != "x86_64" ]; then
|
||||||
# build the basic-webserver platform
|
# build the basic-webserver platform
|
||||||
./roc build ../basic-webserver/examples/echo.roc
|
./roc build ../basic-webserver/examples/echo.roc --optimize
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# We need this extra variable so we can safely check if $2 is empty later
|
# We need this extra variable so we can safely check if $2 is empty later
|
||||||
@ -50,7 +50,7 @@ EXTRA_ARGS=${2:-}
|
|||||||
|
|
||||||
# In some rare cases it's nice to be able to use the legacy linker, so we produce the .o file to be able to do that
|
# In some rare cases it's nice to be able to use the legacy linker, so we produce the .o file to be able to do that
|
||||||
if [ -n "${EXTRA_ARGS}" ];
|
if [ -n "${EXTRA_ARGS}" ];
|
||||||
then ./roc build $EXTRA_ARGS ../basic-webserver/examples/echo.roc
|
then ./roc build $EXTRA_ARGS ../basic-webserver/examples/echo.roc --optimize
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cd ..
|
cd ..
|
||||||
|
Loading…
Reference in New Issue
Block a user