Pat Hickey
84211ae264
manually install wasi-libc
5 years ago
Pat Hickey
15675d339e
i have no idea what im doing.jpg
5 years ago
Pat Hickey
481c967201
makefile: invoke ninja after cmake
...
i thought that was what --install would do. oh well
5 years ago
Pat Hickey
0f1f908673
makefile: when building libc, insist that C compiler works
...
cmake wont be able to execute the wasm program output by wasi-sdk's
clang
5 years ago
Pat Hickey
c24740355d
makefile: point at actual install loc of tools; drop llvm- on ar and nm
...
thanks dan for pointing out we dont need the prefix
5 years ago
Pat Hickey
cc17310f28
makefile: compiler-rt requires libc to be installed to build
...
int_util.c:57 includes stdlib.h, which isnt a new thing.
was there just a race that it used to always win?
5 years ago
Pat Hickey
011c821223
install wasi-libc
5 years ago
Pat Hickey
a93e176eb2
fix cmake invocation
5 years ago
Pat Hickey
84071e4b81
makefile: invoke cmake for wasi-libc
5 years ago
Shao Cheng
677ffc715c
Add NINJA_FLAGS support ( #92 )
5 years ago
Dan Gohman
d29a08f8db
Add a make check rule and run it from the CI script.
5 years ago
Pat Hickey
2bfea0cc96
Github Actions uploads built artifacts ( #83 )
...
* build: put artifacts into dist/. workflow: upload contents of dist/.
* review feedback
* CI workflow: add comment explaining artifact name
* checkout action to v1
* typo fix
5 years ago
Sam Clegg
a944460a3b
Don't try to strip llc (it was removed in 5ae9322
) ( #76 )
5 years ago
Sam Clegg
1f5bf465eb
Remove redundant llvm cmake args ( #75 )
5 years ago
Dan Gohman
9a57b2d609
Re-enable llvm-config (but not install-llvm-config), as it's used in the build.
5 years ago
Dan Gohman
9c477c9f80
Don't install libclang* for now.
...
We can re-evaluate this when the need arrises.
5 years ago
Dan Gohman
a9bd8ee7b3
Install libclang headers too.
5 years ago
Dan Gohman
5ae9322248
Install llvm-config and strings.
...
Also remove redundant install-* rules. Also, don't install llc, since
it isn't an end-user tool.
5 years ago
Sam Clegg
350d45b7cc
Ship wasi-sdk.cmake as part of the SDK ( #70 )
5 years ago
Dan Gohman
ccb15b0ac7
Install additional LLVM tools.
...
This installs unqualified `nm`, `ar`, and other symlinks, additional
tools including `llvm-objdump` and `llvm-objcopy`, and additional clang
tools such as `clang-format` and `clang-tidy`.
5 years ago
Pat Hickey
989a5ec7a9
makefile: change name of clang-8 executable to clang-9
5 years ago
Dan Gohman
1cff039b1c
Use *_LIBDIR_SUFFIX cmake configs to implement multi-arch.
...
libc++ and libc++abi have config variables which can be used to enable
multi-arch installation paths. Use those instead of moving the libraries
after they are installed.
6 years ago
Sam Clegg
d3c256103c
Use $(MAKE) to building wasi-libc to inherit -j flag ( #44 )
...
Followup on #40
6 years ago
Sam Clegg
c6c0061b79
Use ninja generator when using cmake ( #42 )
...
Ninja has many advantages. The motivating one is automatic parallelism
according to number of cores on the machine.
6 years ago
Alex Crichton
d2d7e22429
Don't pass `-j` files to sub-`make` ( #40 )
...
When also using `$(MAKE)` this allows using the top-level specified
parallelism and allows using all cores if a machine has more than 8 cores.
6 years ago
Yury Delendik
c6f4bada2d
Disable -fPIC for compiler-rt and libc++abi
6 years ago
Dan Gohman
49cf0e78ad
Rename sysroot to wasi-sysroot.
...
This renames /opt/wasi/share/sysroot to /opt/wasi/share/wasi-sysroot.
If the user selects an alternate prefix, this allows wasi-sysroot to
coexist with other packages with less risk of namespace collision. For
example, if the user uses a prefix of /usr/local, this avoids using
/usr/local/share/sysroot, which is fairly generic, and uses
/usr/local/share/wasi-sysroot, which more clearly indicates its purpose.
6 years ago
Dan Gohman
0c16443fa0
Update to latest wasi-libc (formerly wasi-sysroot) and llvm 8.0.1.
...
The wasi-libc update here brings numerous bug fixes and minor changes,
and __wasilibc_rmfileat has been renamed to __wasilibc_unlinkat.
The only WebAssembly-relevant patch in the LLVM 8.0.1 update here is
4b1712f7, a fix for using /dev/null as the output file.
6 years ago
Dan Gohman
5b377b6b71
Enable LIBCXXABI_SILENT_TERMINATE for libc++abi.
...
Libc++abi's verbose terminate handler is only useful when exceptions are
enabled. Disabling it removes a few hundred thousand bytes from many C++
programs.
6 years ago
Dan Gohman
38cc8a607c
Say "wasm32-wasi" instead of "wasm32-unknown-wasi" in wasi-sdk.
6 years ago
Dan Gohman
3f6c4f83a3
Distribute updated config.sub and config.guess.
...
Distribute versions of config.sub and config.guess with wasm and wasi
support.
Fixes #16 .
6 years ago
Jakub Konka
fb50c3e21e
Fixes #15
6 years ago
Dan Gohman
d28fd3fb2e
In libcxx and libcxxabi, disable the individual thread APIs too.
...
This disables the automatic detection of these features.
6 years ago
Dan Gohman
9f96bf5ebe
Disable threads in libcxx and libcxxabi for now.
...
WASI libc doesn't currently support threads, so disable threading
support in libcxx and libcxxabi.
6 years ago
Dan Gohman
4d79cfc533
Prefix an echo command with '@' so that we don't see the message twice.
6 years ago
Yury Delendik
8eff94c85c
Allow llvm-project path change; version from llvm-config.
6 years ago
Dan Gohman
4ad2a0f3e0
Update to current wasi-sysroot.
...
This updates wasi-sdk to use the latest version of "wasi-sysroot".
This fixes https://github.com/CraneStation/wasmtime/issues/88 .
6 years ago
Dan Gohman
e98e5b3e9c
Spell "WASI SDK" consistently.
6 years ago
Pat Hickey
cea537aef1
produce deb and tars
...
this should hopefully work on the mac, ill have to get someone to test
it
6 years ago
Pat Hickey
2a3fadc96f
build system fixups
6 years ago
Pat Hickey
c80964d8d7
initial commit
...
largely based on yury's wasmception
6 years ago