aboutsummaryrefslogtreecommitdiff
path: root/config.nims
blob: f5f7d21a2b7a34fba9c6271a15ba64b7d5417572 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# Workaround for C++ scanner.cc causing link error with other C obj files
when defined(MacOSX):
  switch("clang.linkerexe", "g++")
else:
  switch("gcc.linkerexe", "g++")

# Workaround for NilAccessError crash on Windows #98
# Could also help for OSX/Linux crash
switch("gc", "markAndSweep")

# Retain stackTrace for clear errors
switch("stackTrace", "on")
switch("lineTrace", "on")

# Path to compiler
switch("path", "$nim")

# Case objects
when not defined(danger):
  switch("define", "nimOldCaseObjects")