Skip to content

Commit ec2953e

Browse files
committed
build: make CXX overridable (CXX ?= g++) for clang builds
The Makefile hardcoded `CXX = g++`, which a `CXX=clang++ make` environment prefix does not override. Downstream (ProxySQL deps build) compiles this with clang in containers that ship only clang/clang++ (no g++), so the build failed with exit 127 (g++: command not found). Using `?=` lets the environment-provided compiler win while keeping g++ as the default.
1 parent faadb2e commit ec2953e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
CXX = g++
1+
CXX ?= g++
22
CXXFLAGS = -std=c++17 -Wall -Wextra -g -O2
33
CPPFLAGS = -I./include -I./third_party/googletest/googletest/include
44

0 commit comments

Comments
 (0)