diff options
author | Rangi <remy.oukaour+rangi42@gmail.com> | 2022-03-15 17:29:10 -0400 |
---|---|---|
committer | Rangi <remy.oukaour+rangi42@gmail.com> | 2022-03-15 17:29:10 -0400 |
commit | 76de77fdbbffc50487dcfd6c3a4b42d8820c3716 (patch) | |
tree | c33de73e9623d69b0ed4e4f312c56b99bd960150 | |
parent | 4e23a18fac64bd21ab946579135e06ebfa2e34e9 (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 59304bee..e291bcd6 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> |