From 1cf5e6694b2309e2a8c5132d0c3f1b73c3f0f64d Mon Sep 17 00:00:00 2001 From: mratsim Date: Tue, 3 Apr 2018 12:30:05 +0200 Subject: [PATCH] Force usage of GCC on MacOS for #2 --- tests/nim.cfg | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/tests/nim.cfg b/tests/nim.cfg index 149123bad..271d4fa81 100644 --- a/tests/nim.cfg +++ b/tests/nim.cfg @@ -1 +1,14 @@ -p:"../src" + +# TODO FIXME +# Default compiler on Mac is Clang. +# Currently it does not compile due to "Flexible array member with non-trivial destruction" +# See https://github.com/status-im/nimbus/issues/2 +# As a workaround, forces GCC-7 on Mac +# GCC-7 is available through Homebrew + +@if macosx: + cc:"gcc" + gcc.cpp.exe:"/usr/local/bin/g++-7" + gcc.cpp.linkerexe:"/usr/local/bin/g++-7" +@end