alexcrichton opened PR #1365 from no-cpp
to master
:
This commit removes the last wads of C++ that we have in wasmtime,
meaning that building wasmtime no longer requires a C++ compiler. It
still does require a C toolchain for some minor purposes, but hopefully
we can remove that over time too!The motivation for doing this is to consolidate all our signal-handling
code into one location in one language so you don't have to keep
crossing back and forth when understanding what's going on. This also
allows us to remove some extra cruft that wasn't necessary from the C++
original implementation. Additionally this should also make building
wasmtime a bit more portable since it's often easier to acquire a C
toolchain than it is to acquire a C++ toolchain. (e.g. if you're
cross-compiling to a musl target)
pepyakin submitted PR Review.
pepyakin submitted PR Review.
pepyakin created PR Review Comment:
isn't this a signal for
signal
?
pepyakin created PR Review Comment:
Why do we want to reset the handling_trap flag here? It seems that
handle_trap
already takes care about this and windows version doesn't do this either.
alexcrichton updated PR #1365 from no-cpp
to master
:
This commit removes the last wads of C++ that we have in wasmtime,
meaning that building wasmtime no longer requires a C++ compiler. It
still does require a C toolchain for some minor purposes, but hopefully
we can remove that over time too!The motivation for doing this is to consolidate all our signal-handling
code into one location in one language so you don't have to keep
crossing back and forth when understanding what's going on. This also
allows us to remove some extra cruft that wasn't necessary from the C++
original implementation. Additionally this should also make building
wasmtime a bit more portable since it's often easier to acquire a C
toolchain than it is to acquire a C++ toolchain. (e.g. if you're
cross-compiling to a musl target)
alexcrichton submitted PR Review.
alexcrichton created PR Review Comment:
Oops my mistake, forgot to move this when refactoring.
sunfishcode submitted PR Review.
alexcrichton merged PR #1365.
Last updated: Dec 23 2024 at 12:05 UTC