summaryrefslogtreecommitdiff
path: root/lang/nim/files/patch-config-nim.cfg
blob: f7959f5635bfad4f0b6d55fc8b66f560d5c042a0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
--- config/nim.cfg.orig	2020-04-03 17:22:53 UTC
+++ config/nim.cfg
@@ -8,7 +8,7 @@
 # Environment variables can be accessed like so:
 #  gcc.path %= "$CC_PATH"
 
-cc = gcc
+cc = clang
 
 # additional options always passed to the compiler:
 --parallel_build: "0" # 0 to auto-detect number of processors
@@ -118,12 +118,6 @@ path="$lib/pure"
     clang.options.linker = "-ldl"
     clang.cpp.options.linker = "-ldl"
     tcc.options.linker = "-ldl"
-  @end
-  @if bsd:
-    # BSD got posix_spawn only recently, so we deactivate it for osproc:
-    define:useFork
-    # at least NetBSD has problems with thread local storage:
-    tlsEmulation:on
   @end
   @if haiku:
     gcc.options.linker = "-Wl,--as-needed -lnetwork"