diff options
| author | Clifford Wolf <clifford@clifford.at> | 2016-01-23 14:08:23 +0100 |
|---|---|---|
| committer | Clifford Wolf <clifford@clifford.at> | 2016-01-23 14:08:23 +0100 |
| commit | b1475b9c07db01acbc2894ea6023366c2b738f7f (patch) | |
| tree | f4262dc904652e8958173d791d09bb21e6c533bd /icetime/icetime.cc | |
| parent | 0ecaedf2e8a6a2cfb9db2d2974bb78dae52e6bbd (diff) | |
| parent | 7ef4cdc3c2e46ee882bb9cf758e8029564182ed2 (diff) | |
Merge branch 'master' of github.com:cliffordwolf/icestorm
Diffstat (limited to 'icetime/icetime.cc')
| -rw-r--r-- | icetime/icetime.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/icetime/icetime.cc b/icetime/icetime.cc index 0676a8b..e9bfc55 100644 --- a/icetime/icetime.cc +++ b/icetime/icetime.cc @@ -31,6 +31,9 @@ // add this number of ns as estimate for clock distribution mismatch #define GLOBAL_CLK_DIST_JITTER 0.1 +#define STRINGIFY(x) #x +#define TOSTRING(x) STRINGIFY(x) + FILE *fin = nullptr, *fout = nullptr, *frpt = nullptr; bool verbose = false; bool max_span_hack = false; @@ -265,7 +268,7 @@ void read_config() void read_chipdb() { char buffer[1024]; - snprintf(buffer, 1024, "/usr/local/share/icebox/chipdb-%s.txt", config_device.c_str()); + snprintf(buffer, 1024, TOSTRING(PREFIX) "/share/icebox/chipdb-%s.txt", config_device.c_str()); FILE *fdb = fopen(buffer, "r"); if (fdb == nullptr) { |
