aboutsummaryrefslogtreecommitdiffstats
path: root/testing/nim/nim-config-enable-ucontext.patch
blob: 87216497bea19c6f91dadac564757a80eae5574c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
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
@@ -231,3 +231,7 @@
 
 # Configuration for the Tiny C Compiler:
 tcc.options.always = "-w"
+
+# Enable libucontext
+gcc.options.linker %= "-lucontext"
+llvm_gcc.options.linker %= "-lucontext"