aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEuan <euantorano@users.noreply.github.com>2020-06-18 19:08:29 +0100
committergenotrance <dev@genotrance.com>2020-06-18 14:43:11 -0500
commiteb2fd1c1dd40ad5ecb0ee6389f67c7704375ac85 (patch)
tree607dead6b5c5749abcc46838260540ce5db67e8c
parent2885753dca1acacd3bcebb299fb7fa2aa7a88fe4 (diff)
downloadnimterop-eb2fd1c1dd40ad5ecb0ee6389f67c7704375ac85.tar.gz
nimterop-eb2fd1c1dd40ad5ecb0ee6389f67c7704375ac85.zip
Fix #229 - FreeBSD build error
-rw-r--r--nimterop/toast.nims8
1 files changed, 3 insertions, 5 deletions
diff --git a/nimterop/toast.nims b/nimterop/toast.nims
index 83d5cf4..e9a3c99 100644
--- a/nimterop/toast.nims
+++ b/nimterop/toast.nims
@@ -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") \ No newline at end of file
+switch("define", "TOAST")