Skip to content

Commit d2f860e

Browse files
authored
Merge pull request #1 from arbCoding/origin/main
Updated makefile with comments for Void Linux
2 parents 522171a + 82c8683 commit d2f860e

1 file changed

Lines changed: 7 additions & 5 deletions

File tree

Makefile

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,17 +43,19 @@ param = -std=c++20 -pedantic-errors -Wall
4343
# Common debug params regardless of clang++ or g++
4444
common_debug = -Wextra -Werror -Wshadow -ggdb
4545
# Slightly different between MacOS and Linux
46-
ifeq ($(uname_s), Darwin)
47-
compiler = clang++
46+
ifeq ($(uname_s), Darwin) # macOS
47+
compiler = clang++
4848
debug_param = $(common_debug) -Wsign-conversion -Weffc++
49-
else ifeq ($(uname_s), Linux)
50-
compiler = g++-13
49+
else ifeq ($(uname_s), Linux) # Linux
50+
# Works fine with g++-12 (Void linux doesn't have g++-13 yet)
51+
compiler = g++
52+
#compiler = g++-13
5153
# -fanalyzer bugs out on standard library
5254
# -Wsign-conversion doesn't like std::size_t on Linux (warning for long unsigned int -> long long unsigned int
5355
# possibly changing signed, even though both unsigned)
5456
#debug_param = $(common_debug) -fanalyzer -Wsign-conversion -Weffc++
5557
debug_param = $(common_debug) -Weffc++
56-
else
58+
else # Windows
5759
compiler = g++
5860
debug_param = $(common_debug) -Weffc++
5961
endif

0 commit comments

Comments
 (0)