Skip to content
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

Latest wasi-libc #109

Merged
merged 30 commits into from
Feb 27, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
fb52713
gh: bump code version
csegarragonz Feb 2, 2023
4bb6ca4
llvm: bump wasi-libc to latest commit
csegarragonz Feb 3, 2023
278bb9d
wasi-libc: rebase to latest commit cross-compiling all functions
csegarragonz Feb 6, 2023
575ea42
makefile: update toolchain file to use ldflags w/out quotes in clapack
csegarragonz Feb 6, 2023
392edfe
cmake: add linker flags in wasi toolchain
csegarragonz Feb 6, 2023
f6a34c6
faasmtools: set the compilationflags and linking flags required to us…
csegarragonz Feb 6, 2023
7472d6c
func: set wasi emulated libs in toolchain
csegarragonz Feb 6, 2023
f401703
zlib: only build static library
csegarragonz Feb 6, 2023
5248ed5
clapack and zlib: fix compilation with new wasi-libc
csegarragonz Feb 6, 2023
e1662c4
docker: tag llvm image with cpp tag as well
csegarragonz Feb 8, 2023
341e251
libc: changes to cross-compile cpython
csegarragonz Feb 8, 2023
32e7175
wasi-libc: more changes
csegarragonz Feb 9, 2023
71245ba
wasi-libc: more updates
csegarragonz Feb 13, 2023
5ab1f8e
libc: more changes
csegarragonz Feb 14, 2023
59a4281
wasi-libc: emulated mman
csegarragonz Feb 14, 2023
a8bf922
libfake: fix task
csegarragonz Feb 14, 2023
dca1d12
func: fix calloc function by passing the right flags to mmap (as requ…
csegarragonz Feb 14, 2023
c03e85a
dynlink: temporarily disable one failing check
csegarragonz Feb 14, 2023
6f7ad0d
func: remove PROT_EXEC flag from mmap as it is not supported in wasi-…
csegarragonz Feb 20, 2023
d6dca0a
clang-format
csegarragonz Feb 20, 2023
1b9d0a7
wasi-libc: add --purge flag to clean the sysroot and apply patches
csegarragonz Feb 22, 2023
21239a6
wasi-libc: fix patch
csegarragonz Feb 22, 2023
8375103
docker: make sure to re-install llvm headers after purge
csegarragonz Feb 22, 2023
bd11d03
py: make linter happy
csegarragonz Feb 22, 2023
386e2ac
wasi-libc: more cleanup
csegarragonz Feb 23, 2023
09082bc
wasi-libc: remove patch-oritented style
csegarragonz Feb 23, 2023
e1b8bf6
cleanup
csegarragonz Feb 23, 2023
5ade533
wasi-libc: prepare for merge
csegarragonz Feb 23, 2023
dea078a
nits: self-review
csegarragonz Feb 23, 2023
d10c6f3
dynlink: undo patch
csegarragonz Feb 23, 2023
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
Prev Previous commit
Next Next commit
wasi-libc: remove patch-oritented style
  • Loading branch information
csegarragonz committed Feb 23, 2023
commit 09082bcd6cd19221ee6ad046b16c1e27b4b98e7a
2 changes: 0 additions & 2 deletions docker/cpp-sysroot.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,6 @@ RUN cd /code/cpp \
libfaasmpi --native --shared \
# Install toolchain files
&& inv install \
# Patch wasi-libc with the changes required for Faasm
&& inv llvm.patch-wasi-libc \
# Build wasi-libc and reset the sysroot. The second call to LLVM just
# installs some headers that are purged
&& inv llvm.libc --purge llvm \
Expand Down
15 changes: 0 additions & 15 deletions tasks/llvm.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,21 +74,6 @@ def libs(ctx, clean=False):
)


@task()
def patch_wasi_libc(ctx):
"""
Patch wasi-libc with the changes required for Faasm
"""
patch_dir = join(WASI_LIBC_DIR, "faasm-patches")
patches = [
"Faasm_switch_on_mman.patch",
]

for patch in patches:
git_cmd = "git apply {}".format(join(patch_dir, patch))
run(git_cmd, shell=True, check=True, cwd=WASI_LIBC_DIR)


@task()
def libc(ctx, clean=False, purge=False):
"""
Expand Down