Disable function inlining

This commit is contained in:
sk4nz 2022-04-05 12:45:31 +02:00
parent 8dbe117cb0
commit 79caa8c28d

View File

@ -13,7 +13,7 @@
# WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
# ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
.PHONY: clean build upload
.PHONY: clean build upload findfalses
.SILENT:
ifeq ($(shell uname),OpenBSD)
@ -42,6 +42,9 @@ CFLAGS+= -Werror -Wextra
CFLAGS+= -Wno-unused-parameter
CFLAGS+= -Wno-missing-field-initializers
# Fixes segfaults on clang's O2 O3 and gcc's O1 O2
CFLAGS+= -fno-inline-functions
### Octopus flags
CCS= clang $(GCC)
OPTIMIZATIONS= 0 1 2 3 fast s
@ -122,13 +125,14 @@ PROGS+= $(MPROGS)
PROGS+= $(MSPROGS)
PROGS+= $(LPROGS)
PROGS+= $(LSPROGS)
PROGS+= $(MLPROGS)
PROGS+= $(MLSPROGS)
#PROGS+= $(MLPROGS)
#PROGS+= $(MLSPROGS)
PROGS+= $(RCPROGS)
PROGS+= $(RSCPROGS)
PROGS+= $(RGROGS)
PROGS+= $(RSGPROGS)
all: upload
printf "\033[1mThank you for helping science today !\033[0m\n"
@ -139,6 +143,9 @@ upload: $(RESULTS_FILE)
-o BatchMode=yes -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null \
octoupload@www.sk4.nz:
findfalses: $(RESULTS_FILE)
cat *.json | jq -c '.[].results[] | select(.[] == false)' | sort | uniq
build: $(PROGS)
$(RESULTS_FILE): build