Skip to content

Add support for FreeBSD. #27

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,14 @@ And finally similarly as Fedora (this requires a recentish clang)
# wget -O- https://github.com/WebAssembly/wasi-sdk/releases/download/wasi-sdk-20/libclang_rt.builtins-wasm32-wasi-20.0.tar.gz | tar --strip-components=1 -xvzf - -C $(dirname $(clang -print-runtime-dir))
```

### FreeBSD

Install the following as normal

```
# pkg install gmake llvm13 rust wasi-compiler-rt13 wasi-libc
```

## Quickstart in Developing Rust WebAssembly Modules for Unit

1) Setup a suitable build environment as above.
Expand Down
2 changes: 1 addition & 1 deletion shared.mk
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ PP_AR = @echo ' AR '
PP_CCLNK = @echo ' CCLNK '
PP_GEN = @echo ' GEN '

CC = clang
CC ?= clang
CFLAGS += -Wall -Wextra -Wdeclaration-after-statement -Wvla \
-Wmissing-prototypes -Wstrict-prototypes -Wold-style-definition \
-Wimplicit-function-declaration -Wimplicit-int -Wint-conversion \
Expand Down