mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-08-17 09:20:28 +03:00
Ports/ruby: Pass proper --with-coroutine flag per architecture
This fixes the x86_64 build. However, when built with clang x86_64, ruby crashes on exit trying to free some memory that has an invalid header magic. More work to be done here to make the x86_64 build work properly.
This commit is contained in:
parent
809852aeb1
commit
6d4cfba596
Notes:
sideshowbarker
2024-07-17 09:49:15 +09:00
Author: https://github.com/ADKaster Commit: https://github.com/SerenityOS/serenity/commit/6d4cfba596 Pull-request: https://github.com/SerenityOS/serenity/pull/14291 Reviewed-by: https://github.com/linusg Reviewed-by: https://github.com/timschumi
@ -18,7 +18,21 @@ launcher_command="/usr/local/bin/ruby /usr/local/bin/irb --legacy"
|
||||
launcher_run_in_terminal="true"
|
||||
icon_file="../ruby-kit/ruby.png"
|
||||
|
||||
configopts=("--with-coroutine=x86" "--disable-install-doc")
|
||||
configopts=(
|
||||
"--disable-install-doc"
|
||||
)
|
||||
|
||||
case "${SERENITY_ARCH}" in
|
||||
x86_64)
|
||||
configopts+=("--with-coroutine=amd64")
|
||||
;;
|
||||
i686)
|
||||
configopts+=("--with-coroutine=x86")
|
||||
;;
|
||||
*)
|
||||
echo "Error: Architecture ${SERENITY_ARCH} is not supported for this port"
|
||||
exit 1
|
||||
esac
|
||||
|
||||
export CFLAGS="-DNGROUPS_MAX=65536"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user