Skip to content

Commit 71a2642

Browse files
committed
update Grid setup
1 parent 3f770fc commit 71a2642

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/grid/GridDefs.nim

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
1-
import os
1+
import os, strutils, sequtils
22
#import io/qio
33

44
const gridDir {.strdefine.} = getHomeDir() & "/lqcd/install/grid"
55
const gridPassC = "-I" & gridDir / "include"
66
const gridLdFlags = staticExec(gridDir/"bin"/"grid-config --ldflags")
7+
.splitWhitespace.filterIt(startsWith(it,"-L")).join # only get -L paths
78
const gridLibs = staticExec(gridDir/"bin"/"grid-config --libs")
89
{.passC: gridPassC.}
910
{.passL: gridLdFlags.}
1011
{.passL: gridLibs.}
1112
#{.passC: "-diag-disable=469".}
12-
{.passC: "-fno-strict-aliasing".}
13+
{.passC: "-fno-strict-aliasing".} # Grid may give incorrect results without this
1314
static:
1415
echo "Using Grid: ", gridDir
1516
echo "Grid compile flags: ", gridPassC
16-
#echo "Grid link flags: ", gridPassL
1717
echo "Grid ldflags: ", gridLdFlags
1818
echo "Grid libs: ", gridLibs
1919

0 commit comments

Comments
 (0)