Compare commits

..

2 Commits

Author SHA1 Message Date
saundersp
59dfda6063 Dockerfile : updated base image to alpine:3.22.2 2025-10-13 03:03:13 +02:00
saundersp
60373848a3 Makefile : Added march flag 2025-10-13 03:03:03 +02:00
2 changed files with 4 additions and 4 deletions

View File

@@ -1,4 +1,4 @@
FROM alpine:3.22.1 AS builder FROM alpine:3.22.2 AS builder
RUN apk add --no-cache \ RUN apk add --no-cache \
libstdc++=14.2.0-r6 \ libstdc++=14.2.0-r6 \
@@ -18,7 +18,7 @@ COPY *.cpp *.hpp Makefile ./
RUN sed -i 's/ -fsanitize=undefined//' Makefile \ RUN sed -i 's/ -fsanitize=undefined//' Makefile \
&& make -j "$(nproc)" && make -j "$(nproc)"
FROM alpine:3.22.1 FROM alpine:3.22.2
RUN apk add --no-cache \ RUN apk add --no-cache \
libstdc++=14.2.0-r6 \ libstdc++=14.2.0-r6 \

View File

@@ -2,8 +2,8 @@ CC := g++ -m64 -std=c++17
OBJ_DIR := bin OBJ_DIR := bin
SRC_DIR := . SRC_DIR := .
# Optimizer flags # Optimizer flags
#CFLAGS := -Og -g -rdynamic -pg -ggdb3 -D__DEBUG #CFLAGS := -Og -march=native -g -rdynamic -pg -ggdb3 -D__DEBUG
CFLAGS := -O3 CFLAGS := -O3 -march=native
# Warning flags # Warning flags
CFLAGS := $(CFLAGS) -Wall -Werror -Wextra -Wpedantic -Wshadow -Wnon-virtual-dtor -Wold-style-cast -Wcast-align -Wunused -Woverloaded-virtual -Wconversion CFLAGS := $(CFLAGS) -Wall -Werror -Wextra -Wpedantic -Wshadow -Wnon-virtual-dtor -Wold-style-cast -Wcast-align -Wunused -Woverloaded-virtual -Wconversion
CFLAGS := $(CFLAGS) -Wsign-conversion -Wnull-dereference -Wdouble-promotion -Wformat=2 -Wimplicit-fallthrough -Wmisleading-indentation -Wduplicated-cond CFLAGS := $(CFLAGS) -Wsign-conversion -Wnull-dereference -Wdouble-promotion -Wformat=2 -Wimplicit-fallthrough -Wmisleading-indentation -Wduplicated-cond