From 53ad10478ff1ca2103bc92897f985c00e7644de5 Mon Sep 17 00:00:00 2001 From: jaume Date: Sat, 2 Sep 2023 09:08:35 +0200 Subject: [PATCH] Fixing prod build and adding -prod in github tests --- .github/workflows/tests.yaml | 2 +- src/register_service.v | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index ca296bc..2d8757b 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -63,7 +63,7 @@ jobs: uses: actions/checkout@v3 - name: ${{ matrix.trimming }} ${{ matrix.memory-management }} build - run: v -shared ${{ matrix.trimming }} ${{ matrix.memory-management }} . + run: v -shared -prod ${{ matrix.trimming }} ${{ matrix.memory-management }} . tests: needs: simple-build diff --git a/src/register_service.v b/src/register_service.v index 7470731..ac9a242 100644 --- a/src/register_service.v +++ b/src/register_service.v @@ -26,7 +26,7 @@ struct Factory { can_instantiate fn () bool [required] build fn () ! [required] mut: - instantiated bool = false + instantiated bool } [inline]