mirror of
https://github.com/YosysHQ/nextpnr.git
synced 2026-04-14 07:50:36 +00:00
Switch to #embed_str for shorter compile time
Signed-off-by: Clifford Wolf <clifford@clifford.at>
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user