mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-12-08 06:09:58 +00:00
AK+Everywhere: Remove ifdefs for WASM and Emscripten
Building the Ladybird code for Emscripten doesn't really make sense and I doubt it is even possible with all the dependencies now.
This commit is contained in:
parent
3166dabcd6
commit
17d3b881d3
Notes:
github-actions[bot]
2025-11-07 10:30:12 +00:00
Author: https://github.com/cqundefine
Commit: 17d3b881d3
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6631
Reviewed-by: https://github.com/gmta ✅
6 changed files with 7 additions and 25 deletions
|
|
@ -24,7 +24,7 @@
|
|||
#include <signal.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#if !defined(AK_OS_MACOS) && !defined(AK_OS_EMSCRIPTEN) && !defined(AK_OS_GNU_HURD)
|
||||
#if !defined(AK_OS_MACOS) && !defined(AK_OS_GNU_HURD)
|
||||
// Only used to disable core dumps
|
||||
# include <sys/prctl.h>
|
||||
#endif
|
||||
|
|
@ -589,7 +589,7 @@ int main(int argc, char** argv)
|
|||
#ifdef AK_OS_GNU_HURD
|
||||
if (disable_core_dumping)
|
||||
setenv("CRASHSERVER", "/servers/crash-kill", true);
|
||||
#elif !defined(AK_OS_MACOS) && !defined(AK_OS_EMSCRIPTEN)
|
||||
#elif !defined(AK_OS_MACOS)
|
||||
if (disable_core_dumping && prctl(PR_SET_DUMPABLE, 0, 0, 0) < 0) {
|
||||
perror("prctl(PR_SET_DUMPABLE)");
|
||||
return exit_wrong_arguments;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue