diff options
author | Rangi <remy.oukaour+rangi42@gmail.com> | 2022-03-15 17:29:13 -0400 |
---|---|---|
committer | Rangi <remy.oukaour+rangi42@gmail.com> | 2022-03-15 17:29:13 -0400 |
commit | 10d5f1295a714f7d3bda40ee5f96930dec4f99a4 (patch) | |
tree | af94c598d396be966f2e268ad6a548986240b1e2 | |
parent | ccbdbb668cdb6183b74b8f79cb49e26ab93146f8 (diff) |
Use -flto for all tools
-rw-r--r-- | tools/Makefile | 5 | ||||
-rw-r--r-- | tools/common.h | 2 |
2 files changed, 4 insertions, 3 deletions
diff --git a/tools/Makefile b/tools/Makefile index adc1c4db..2e381833 100644 --- a/tools/Makefile +++ b/tools/Makefile @@ -1,7 +1,7 @@ .PHONY: all clean CC := gcc -CFLAGS := -O3 -std=c11 -Wall -Wextra -pedantic -Wno-missing-field-initializers +CFLAGS := -O3 -flto -std=c11 -Wall -Wextra -pedantic -Wno-missing-field-initializers tools := \ bpp2png \ @@ -23,11 +23,10 @@ png_dimensions: common.h scan_includes: common.h stadium: common.h -bpp2png: CFLAGS += -flto bpp2png: bpp2png.c lodepng/lodepng.c common.h lodepng/lodepng.h $(CC) $(CFLAGS) -o $@ bpp2png.c lodepng/lodepng.c -lzcomp: CFLAGS += -flto -Wno-strict-overflow -Wno-sign-compare +lzcomp: CFLAGS += -Wno-strict-overflow -Wno-sign-compare lzcomp: $(wildcard lz/*.c) $(wildcard lz/*.h) $(CC) $(CFLAGS) -o $@ lz/*.c diff --git a/tools/common.h b/tools/common.h index 147e2520..ac72cd3a 100644 --- a/tools/common.h +++ b/tools/common.h @@ -5,6 +5,8 @@ #include <stdlib.h> #include <stdint.h> #include <stdbool.h> +#include <stddef.h> +#include <stdnoreturn.h> #include <inttypes.h> #include <string.h> #include <errno.h> |