Skip to content

Commit

Permalink
Remove unused exports (#114)
Browse files Browse the repository at this point in the history
  • Loading branch information
anuraaga authored Jun 21, 2024
1 parent d4680b0 commit ee591b0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/wasm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,16 @@ jobs:
- name: generate memory.wasm
run: go run github.com/wasilibs/go-wabt/cmd/wat2wasm@face6b1 --enable-threads -o internal/wasm/memory.wasm internal/wasm/memory.wat

- run: go run mage test

- uses: actions/attest-build-provenance@v1
if: github.event_name != 'pull_request'
with:
subject-path: internal/wasm/*

- name: push wasm
if: github.event_name != 'pull_request'
continue-on-error: true # Ignore if there is no change
run: |
git config user.name '${{steps.app-token.outputs.app-slug}}[bot]'
git config user.email '${{ steps.app-token.outputs.installation-id }}+${{ steps.app-token.outputs.app-slug }}[bot]@users.noreply.github.com>'
Expand Down
4 changes: 1 addition & 3 deletions buildtools/re2/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,7 @@ RUN $CXX -o libcre2-noopt.so -Wl,--global-base=1024 $LDFLAGS \
-Wl,--export=cre2_named_groups_iter_delete \
-Wl,--export=__wasm_init_tls \
-Wl,--export=__stack_pointer \
-Wl,--export=__tls_base \
-Wl,--export=__tls_align \
-Wl,--export=__tls_size
-Wl,--export=__tls_base

RUN wasm-opt -o libcre2.so --low-memory-unused --flatten --rereloop --converge -O3 libcre2-noopt.so

Expand Down

0 comments on commit ee591b0

Please sign in to comment.