-
Notifications
You must be signed in to change notification settings - Fork 463
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WebAssembly: Prepare library to be used with wasm32-wasi
It is the changes I made to make compilation work for clang with "wasm32-wasi" target and the wasi-sdk.
- Loading branch information
1 parent
5ebc5d5
commit b58bef8
Showing
6 changed files
with
81 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#include <stdlib.h> | ||
|
||
// -fno-exceptions is not an option with libsass yet, | ||
// stubbing libc++abi functions | ||
|
||
void __cxa_throw(void *thrown_exception, void *tinfo, | ||
void (*dest)(void *)) | ||
{ | ||
abort(); | ||
} | ||
|
||
void *__cxa_allocate_exception(size_t thrown_size) | ||
{ | ||
abort(); | ||
} | ||
|
||
void __cxa_rethrow() | ||
{ | ||
abort(); | ||
} | ||
|
||
void* __cxa_begin_catch(void* exceptionObject) | ||
{ | ||
abort(); | ||
} |