From ca7684dc5d8fb178d1ee5d41488dcdf988882ca1 Mon Sep 17 00:00:00 2001 From: Ole Morud Date: Sun, 4 Aug 2024 11:36:41 +0200 Subject: [PATCH] Makefile (horrible): pass -O1 to let the compiler match inline asm constraints --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 69a3507..712ff19 100644 --- a/Makefile +++ b/Makefile @@ -25,7 +25,7 @@ ASM_SOURCES := $(shell find $(SOURCE_DIR) -name '*.S') OBJECTS := $(patsubst $(SOURCE_DIR)/%, $(BUILD_DIR)/%, $(C_SOURCES:.c=.o) $(ASM_SOURCES:.S=.o)) DEPENDS := $(patsubst $(SOURCE_DIR)/%, $(BUILD_DIR)/%, $(C_SOURCES:.c=.d)) -CFLAGS := -MMD -ffreestanding -O0 -Wall -Wextra -Werror -std=c2x -I$(SOURCE_DIR)/include -no-pie -fstack-protector-strong +CFLAGS := -MMD -ffreestanding -O1 -Wall -Wextra -Werror -std=c2x -I$(SOURCE_DIR)/include -no-pie -fstack-protector-strong ASFLAGS := #$(info C_SOURCES is $(C_SOURCES))