Skip to content

Commit

Permalink
build: compile in march native for release mode
Browse files Browse the repository at this point in the history
  • Loading branch information
drawbu committed May 3, 2024
1 parent 486a92c commit 1be48cb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ $(BUILD_DIR)/source/%.o: %.c
@ $(CC) -o $@ -c $< $(CFLAGS) $(LDLIBS) $(DEPS_FLAGS) || $(DIE)

$(NAME): CFLAGS += -flto -O3
$(NAME): CFLAGS += -march=native -mtune=native
$(NAME): $(OBJ)
@ $(ECHO) "[${C_BOLD}${C_YELLOW}CC${C_RESET}] ${C_GREEN}$@${C_RESET}"
@ $(CC) -o $@ $^ $(CFLAGS) $(LDFLAGS) $(LDLIBS) || $(DIE)
Expand Down

0 comments on commit 1be48cb

Please sign in to comment.