Skip to content

Commit

Permalink
Makefile: use c++17 instead of c++20
Browse files Browse the repository at this point in the history
  • Loading branch information
Rosalie241 committed Oct 11, 2023
1 parent 211116d commit e72da65
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ SOURCE_DIR = SporeModManager

PKG_CONFIG := pkg-config
CXX := g++
CXXFLAGS := -std=c++20 \
CXXFLAGS := -std=c++17 \
-O2 -flto \
-I$(SOURCE_DIR) \
-I$(THIRDPARTY_DIR)/tinyxml2 \
$(shell $(PKG_CONFIG) --cflags minizip)

LDFLAGS := $(shell $(PKG_CONFIG) --libs minizip)
LDFLAGS := -s $(shell $(PKG_CONFIG) --libs minizip)

OBJECT_FILES = \
$(SOURCE_DIR)/main.o \
Expand All @@ -36,7 +36,7 @@ $(BINARY_DIR):
mkdir -p $@

$(BINARY_DIR)/SporeModManager: $(BINARY_DIR) $(OBJECT_FILES)
$(CXX) $(OBJECT_FILES) -s -o $@ $(LDFLAGS)
$(CXX) $(OBJECT_FILES) -o $@ $(LDFLAGS)

clean:
rm -rf $(BINARY_DIR) $(OBJECT_FILES)

0 comments on commit e72da65

Please sign in to comment.