We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0cee3a1 commit ed94076Copy full SHA for ed94076
cpp/Makefile
@@ -9,6 +9,15 @@ all: tests check
9
include ../mk/common.mk
10
11
CXX = /usr/bin/g++
12
+
13
+SYS_NAME:=$(shell uname -s)
14
+IS_CYGWIN:=$(findstring CYGWIN, $(SYS_NAME))
15
+IS_MACOS:=$(findstring Darwin, $(SYS_NAME))
16
17
+ifeq ($(IS_MACOS), Darwin)
18
+ CXX = /usr/local/bin/g++
19
+endif
20
21
MIN_GPP_VERSION=13
22
GPP_VERSION:=$(shell $(CXX) -dumpfullversion | cut -d. -f1)
23
CHECK_GPP_VERSION:=$(shell expr "$(GPP_VERSION)" ">=" "$(MIN_GPP_VERSION)")
@@ -20,9 +29,6 @@ endif
29
30
CXXFLAGS = -std=c++20 -Wall -Wextra -Wpedantic -Werror -Iincludes
31
-SYS_NAME:=$(shell uname -s)
24
-IS_CYGWIN:=$(findstring CYGWIN, $(SYS_NAME))
25
-
26
32
ifeq ($(IS_CYGWIN), CYGWIN)
27
33
CXXFLAGS += -static-libstdc++
28
34
endif
0 commit comments