File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 1- import os
1+ import os, strutils, sequtils
22# import io/qio
33
44const gridDir {.strdefine .} = getHomeDir () & " /lqcd/install/grid"
55const gridPassC = " -I" & gridDir / " include"
66const gridLdFlags = staticExec (gridDir/ " bin" / " grid-config --ldflags" )
7+ .splitWhitespace.filterIt (startsWith (it," -L" )).join # only get -L paths
78const 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
1314static :
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
You can’t perform that action at this time.
0 commit comments