1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-22 18:55:29 +03:00
aports/testing/nim/nim-config-fix-coro.patch
Jean-Louis Fuchs 79323bee97 testing/nim: fix coroutines
Fix coroutines by using setjmp instead of ucontext (which musl doesn't
support because it deprecated)
2018-01-14 21:19:10 +00:00

11 lines
359 B
Diff

diff -ruN a/config/nim.cfg b/config/nim.cfg
--- a/config/nim.cfg 2018-01-06 22:48:43.920598426 +0100
+++ b/config/nim.cfg 2018-01-06 22:49:43.620979479 +0100
@@ -9,6 +9,7 @@
# gcc.path %= "$CC_PATH"
cc = gcc
+define:nimCoroutinesSetjmp
# additional options always passed to the compiler:
--parallel_build: "0" # 0 to auto-detect number of processors