diff options
author | Rangi <remy.oukaour+rangi42@gmail.com> | 2022-03-15 17:29:07 -0400 |
---|---|---|
committer | Rangi <remy.oukaour+rangi42@gmail.com> | 2022-03-15 17:29:07 -0400 |
commit | e17557706a0ad7653264d3dc4b25a74744f4ab26 (patch) | |
tree | 718950c5e0a396bad69ab0ef0241ba280a8a8d2b | |
parent | a75dd222709c92ae136d835ff2451391d5a88e45 (diff) |
Use -flto for all tools
-rw-r--r-- | tools/Makefile | 2 | ||||
-rw-r--r-- | tools/common.h | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/tools/Makefile b/tools/Makefile index 32f764a1..64d6fe8a 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 := \ gfx \ diff --git a/tools/common.h b/tools/common.h index a8b69445..38b7cc6d 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> |