Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion common.mk
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ endif
# --------------------------
# Compiler / Linker flags
# --------------------------
CXXFLAGS := -std=c++23 -Wall -Wextra $(OPTFLAGS) $(SAN_FLAGS)
CXXFLAGS := -std=c++23 -Wall -Wextra -Werror $(OPTFLAGS) $(SAN_FLAGS)
LDFLAGS := $(SAN_FLAGS)

# --------------------------
Expand Down
2 changes: 1 addition & 1 deletion fold-left-fold-right/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
include ../common.mk

# per-example flags
CXXFLAGS += -pthread
# CXXFLAGS += -pthread

TARGET := $(notdir $(CURDIR))
SRCS := main.cpp
Expand Down
2 changes: 1 addition & 1 deletion parallel-transform/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
include ../common.mk

# per-example flags
CXXFLAGS += -pthread
# CXXFLAGS += -pthread

## get it from the folder name
TARGET := $(notdir $(CURDIR))
Expand Down
7 changes: 5 additions & 2 deletions smart-ptr/Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
CXX = g++
CXXFLAGS = -std=c++23 -Wall -Wextra -g -I.
# pull in shared compiler settings
include ../common.mk

# per-example flags
# CXXFLAGS += -pthread

TARGET := $(notdir $(CURDIR))
SRCS = main.cpp
Expand Down
3 changes: 3 additions & 0 deletions unique-ptr-basics/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# shared compiler configuration
include ../common.mk

# per-example flags
# CXXFLAGS += -pthread

TARGET := $(notdir $(CURDIR))
SRCS := main.cpp
OBJS := $(SRCS:.cpp=.o)
Expand Down
2 changes: 1 addition & 1 deletion views-zip-enumerate/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
include ../common.mk

# per-example flags
CXXFLAGS += -pthread
# CXXFLAGS += -pthread

TARGET := $(notdir $(CURDIR))
SRCS := main.cpp
Expand Down