From 4d487cea1fd210bf7d57156628609aec7fd309ca Mon Sep 17 00:00:00 2001 From: Dustin Brody Date: Wed, 5 Feb 2020 18:20:05 +0100 Subject: [PATCH] build with -march=native by default --- nim.cfg | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/nim.cfg b/nim.cfg index e2a06a516..156531911 100644 --- a/nim.cfg +++ b/nim.cfg @@ -21,6 +21,13 @@ -d:"chronicles_colors=off" @end +# This helps especially for 32-bit x86, which sans SSE2 and newer instructions +# requires quite roundabout code generation for cryptography, and other 64-bit +# and larger arithmetic use cases, along with register starvation issues. When +# engineering a more portable binary release, this should be tweaked but still +# use at least -msse2 or -msse3. +--passC:"-march=native" + --threads:on --opt:speed --excessiveStackTrace:on