--- config/nim.cfg.orig 2019-07-22 09:41:23 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 @@ -105,12 +105,6 @@ path="$lib/pure" 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" gcc.cpp.options.linker = "-Wl,--as-needed -lnetwork" @@ -132,7 +126,7 @@ path="$lib/pure" @end @if nintendoswitch: - cc = "switch_gcc" + cc = "switch_clang" switch_gcc.options.linker = "-g -march=armv8-a -mtune=cortex-a57 -mtp=soft -fPIE" switch_gcc.cpp.options.linker = "-g -march=armv8-a -mtune=cortex-a57 -mtp=soft -fPIE" switch_gcc.options.always = "-g -Wall -O2 -ffunction-sections -march=armv8-a -mtune=cortex-a57 -mtp=soft -fPIE -D__SWITCH__"