Do not compile tools with LTO

This commit is contained in:
Rangi 2026-01-07 22:07:25 -05:00 committed by GitHub
parent 5924f9ab00
commit fbb7e51da4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -3,18 +3,6 @@
CC := gcc
CFLAGS := -O3 -std=c11 -Wall -Wextra -pedantic
ifeq ($(OS),Windows_NT)
NULL := NUL
else
NULL := /dev/null
endif
PROBE_LTO := $(shell echo 'int main(void){return 0;}' | $(CC) -flto -x c - -o $(NULL) 2>$(NULL) && echo y)
ifeq ($(PROBE_LTO),y)
CFLAGS += -flto
endif
tools := \
gfx \
make_patch \