mirror of
https://github.com/pret/pokered.git
synced 2026-04-24 23:19:55 -05:00
Do not compile tools with LTO
This commit is contained in:
parent
5924f9ab00
commit
fbb7e51da4
|
|
@ -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 \
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user