Fix color diagnostics stuff
This commit is contained in:
parent
de2d8602e1
commit
9031c61ad7
1 changed files with 4 additions and 3 deletions
|
@ -10,6 +10,7 @@ import SCons.Errors
|
||||||
|
|
||||||
import paths
|
import paths
|
||||||
|
|
||||||
|
|
||||||
def do_sconscript(env, src_dir, out_dir=None):
|
def do_sconscript(env, src_dir, out_dir=None):
|
||||||
'''
|
'''
|
||||||
Look for a SConscript file in `src_dir` and run it. Return any result.
|
Look for a SConscript file in `src_dir` and run it. Return any result.
|
||||||
|
@ -100,9 +101,9 @@ class Environment(SCons.Environment.Environment):
|
||||||
# Allow same directory includes.
|
# Allow same directory includes.
|
||||||
self.AppendUnique(CPPPATH=['.'])
|
self.AppendUnique(CPPPATH=['.'])
|
||||||
|
|
||||||
self.SetDefault(CC=self.Detect(['clang', 'gcc']))
|
self['CC'] = self.Detect(['clang', 'gcc'])
|
||||||
self.SetDefault(CXX=self.Detect(['clang++', 'g++']))
|
self['CXX'] = self.Detect(['clang++', 'g++'])
|
||||||
self.SetDefault(LINK=self.Detect(['clang++', 'clang', 'ld']))
|
self['LINK'] = self.Detect(['clang++', 'clang', 'ld'])
|
||||||
|
|
||||||
# Modern C/C++
|
# Modern C/C++
|
||||||
if modern:
|
if modern:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue