summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKrzysztof Leśniak <serpent7776@gmail.com>2020-08-01 17:04:14 +0200
committerGitHub <noreply@github.com>2020-08-01 17:04:14 +0200
commit6c5fc1d4ec2cbe32b5e617895da433ee6e974ada (patch)
treedb7df0583db9edbddd0cfecbe2133088245d51eb
parent086a9b2f8833fd45f2119596f74f90b9f7e2cdf5 (diff)
downloadninja-6c5fc1d4ec2cbe32b5e617895da433ee6e974ada.tar.gz
Use c++ instead of g++
`configure.py` assumes `g++` is present on the system, which is not the case, e.g. for FreeBSD. `c++` should be used insted, which should be a link to system c++ compiler. This will be `g++` for linux, but `clang++` for FreeBSD.
-rwxr-xr-xconfigure.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure.py b/configure.py
index 8eef7e6..48c4821 100755
--- a/configure.py
+++ b/configure.py
@@ -269,7 +269,7 @@ if configure_env:
n.variable('configure_env', config_str + '$ ')
n.newline()
-CXX = configure_env.get('CXX', 'g++')
+CXX = configure_env.get('CXX', 'c++')
objext = '.o'
if platform.is_msvc():
CXX = 'cl'