summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2016-01-27 18:03:54 +0100
committerRobin Watts <robin.watts@artifex.com>2016-01-28 20:09:49 +0000
commitfa94774e4786bbb6b744aa95ed59bf155c2f11cc (patch)
tree26d9da0ab9b6c281c1fbba2c39314500fc6d3d70
parent80ef70399639e4203b5d5f50e130a30aba221655 (diff)
downloadmupdf-fa94774e4786bbb6b744aa95ed59bf155c2f11cc.tar.xz
Tweak fontdump .incbin directive.
Newer versions of clang supports .incbin, so enable it for clang. Disable .incbin for release builds, since then the compiler can strip out unused font data.
-rw-r--r--scripts/fontdump.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/fontdump.c b/scripts/fontdump.c
index 8c1220ce..49c48bbc 100644
--- a/scripts/fontdump.c
+++ b/scripts/fontdump.c
@@ -48,13 +48,15 @@ main(int argc, char **argv)
return 1;
}
+ fprintf(fo, "#ifdef DEBUG\n");
fprintf(fo, "#ifndef __STRICT_ANSI__\n");
fprintf(fo, "#if defined(__linux__) || defined(__FreeBSD__) || defined(__OpenBSD__)\n");
- fprintf(fo, "#if !defined(__clang__) && !defined(__ICC)\n");
+ fprintf(fo, "#if !defined(__ICC)\n");
fprintf(fo, "#define HAVE_INCBIN\n");
fprintf(fo, "#endif\n");
fprintf(fo, "#endif\n");
fprintf(fo, "#endif\n");
+ fprintf(fo, "#endif\n");
for (i = 2; i < argc; i++)
{