Skip to content

Commit 5d27ee2

Browse files
authored
optimize basic platform builds
1 parent 3d8884a commit 5d27ee2

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

ci/build_basic_cli.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,14 @@ mv roc_nightly* roc_nightly
3636
cd roc_nightly
3737

3838
# build the basic cli platform
39-
./roc build ../basic-cli/examples/countdown.roc
39+
./roc build ../basic-cli/examples/countdown.roc --optimize
4040

4141
# We need this extra variable so we can safely check if $2 is empty later
4242
EXTRA_ARGS=${2:-}
4343

4444
# 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
4545
if [ -n "${EXTRA_ARGS}" ];
46-
then ./roc build $EXTRA_ARGS ../basic-cli/examples/countdown.roc
46+
then ./roc build $EXTRA_ARGS ../basic-cli/examples/countdown.roc --optimize
4747
fi
4848

4949
cd ..

ci/build_basic_webserver.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -42,15 +42,15 @@ cd roc_nightly
4242
# prevent https://github.com/roc-lang/basic-webserver/issues/9
4343
if [ "$OS" != "Linux" ] || [ "$ARCH" != "x86_64" ]; then
4444
# build the basic-webserver platform
45-
./roc build ../basic-webserver/examples/echo.roc
45+
./roc build ../basic-webserver/examples/echo.roc --optimize
4646
fi
4747

4848
# We need this extra variable so we can safely check if $2 is empty later
4949
EXTRA_ARGS=${2:-}
5050

5151
# 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
5252
if [ -n "${EXTRA_ARGS}" ];
53-
then ./roc build $EXTRA_ARGS ../basic-webserver/examples/echo.roc
53+
then ./roc build $EXTRA_ARGS ../basic-webserver/examples/echo.roc --optimize
5454
fi
5555

5656
cd ..

0 commit comments

Comments
 (0)