aboutsummaryrefslogtreecommitdiff
path: root/icetime/iceutil.cc
AgeCommit message (Collapse)Author
2018-09-03icetime: Add support for searching for chipdb relative to binaryNathan Rossi
Like yosys and arachne-pnr, allow for searching for the desired chipdb file relative to the executing binaries directory. This allows for portable builds of icetime without needing to specify the exact path to the needed chipdb file with the -C arg. In order to support this icetime must be able to get the "proc_self_dirname" path just like yosys and arachne-pnr. As such copy the equivalent code to get this path information. To avoid cluttering the icetime.cc file with this code, place it in a separate iceutil.cc file. Signed-off-by: Nathan Rossi <nathan@nathanrossi.com>