Skip to content

Commit

Permalink
Changed C++ compiler detection error message
Browse files Browse the repository at this point in the history
It's now :

"Failed to detect C++ compiler : CXX environment variable not set.
Is g++ or clang++ available in your PATH ?"
  • Loading branch information
Naughtylus committed Nov 3, 2016
1 parent 5020379 commit 5982d47
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion SConstruct
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,9 @@ class FreelanEnvironment(Environment):

if self['CXX'] is None:
raise SCons.Errors.BuildError(
errstr="CXX environment variable not set. Are you missing a C++ compiler?")
errstr=(
"Failed to detect C++ compiler : CXX environment variable not set."
"\nIs g++ or clang++ available in your PATH ?"))
else:
if os.path.basename(self['CXX']) == 'clang++':
self.Append(CXXFLAGS=['-Qunused-arguments'])
Expand Down

0 comments on commit 5982d47

Please sign in to comment.