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:
Undefine 2025-08-12 17:00:32 +02:00 committed by Jelle Raaijmakers
parent 3166dabcd6
commit 17d3b881d3
Notes: github-actions[bot] 2025-11-07 10:30:12 +00:00
6 changed files with 7 additions and 25 deletions

View file

@ -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;