diff options
Diffstat (limited to 'community/nim/nim-config-enable-ucontext.patch')
-rw-r--r-- | community/nim/nim-config-enable-ucontext.patch | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/community/nim/nim-config-enable-ucontext.patch b/community/nim/nim-config-enable-ucontext.patch new file mode 100644 index 00000000000..d203ad394c1 --- /dev/null +++ b/community/nim/nim-config-enable-ucontext.patch @@ -0,0 +1,14 @@ +diff -ruN a/config/nim.cfg b/config/nim.cfg +--- a/config/nim.cfg 2018-02-15 00:45:38.251038499 +0100 ++++ b/config/nim.cfg 2018-02-15 00:46:48.937858896 +0100 +@@ -291,6 +291,10 @@ vcc.cpp.options.size = "/O1" + # Configuration for the Tiny C Compiler: + tcc.options.always = "-w" + ++# Enable libucontext ++gcc.options.linker %= "-lucontext" ++llvm_gcc.options.linker %= "-lucontext" ++ + @if arm or arm64: + --define:nimEmulateOverflowChecks + @end |