Fix #229 - FreeBSD build error

This commit is contained in:
Euan 2020-06-18 19:08:29 +01:00 committed by genotrance
commit eb2fd1c1dd

View file

@ -1,10 +1,8 @@
import os
# 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++")
switch("clang.linkerexe", "clang++")
switch("gcc.linkerexe", "g++")
# Workaround for NilAccessError crash on Windows #98
# Could also help for OSX/Linux crash
@ -25,4 +23,4 @@ when not defined(danger):
switch("out", currentSourcePath.parentDir() / "toast".addFileExt(ExeExt))
# Define TOAST for globals.nim
switch("define", "TOAST")
switch("define", "TOAST")