aboutsummaryrefslogtreecommitdiffstats
path: root/bba/main.cc
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2019-12-01 17:22:47 -0800
committerClifford Wolf <clifford@clifford.at>2019-12-01 17:22:47 -0800
commit5897a6a9634baa479ff044e008c6f3c5193be86d (patch)
tree507570e1b20511c80c5e0bcf6e4e4b48fd8634cf /bba/main.cc
parent0392cd3a5b2a00a13dc3f48ea74f4f28613ee6ab (diff)
downloadnextpnr-5897a6a9634baa479ff044e008c6f3c5193be86d.tar.gz
nextpnr-5897a6a9634baa479ff044e008c6f3c5193be86d.tar.bz2
nextpnr-5897a6a9634baa479ff044e008c6f3c5193be86d.zip
Switch to #embed_str for shorter compile time
Signed-off-by: Clifford Wolf <clifford@clifford.at>
Diffstat (limited to 'bba/main.cc')
-rw-r--r--bba/main.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/bba/main.cc b/bba/main.cc
index 5940797e..9d7f9f8f 100644
--- a/bba/main.cc
+++ b/bba/main.cc
@@ -445,9 +445,9 @@ int main(int argc, char **argv)
for (auto &s : preText)
fprintf(fileOut, "%s\n", s.c_str());
- fprintf(fileOut, "const char %s[%d] =\n", streams[0].name.c_str(), int(data.size()));
+ fprintf(fileOut, "const char %s[%d] =\n", streams[0].name.c_str(), int(data.size()) + 1);
char *bin_basename_buf = strdup(files.at(2).c_str());
- fprintf(fileOut, "#embed \"%s\"\n", basename(bin_basename_buf));
+ fprintf(fileOut, "#embed_str \"%s\"\n", basename(bin_basename_buf));
fprintf(fileOut, ";\n");
for (auto &s : postText)