clangxx.py (SCons-4.3.0) | : | clangxx.py (SCons-4.4.0) | ||
---|---|---|---|---|
skipping to change at line 90 | skipping to change at line 90 | |||
return | return | |||
# clang -dumpversion is of no use | # clang -dumpversion is of no use | |||
with pipe.stdout: | with pipe.stdout: | |||
line = pipe.stdout.readline() | line = pipe.stdout.readline() | |||
line = line.decode() | line = line.decode() | |||
match = re.search(r'clang +version +([0-9]+(?:\.[0-9]+)+)', line) | match = re.search(r'clang +version +([0-9]+(?:\.[0-9]+)+)', line) | |||
if match: | if match: | |||
env['CXXVERSION'] = match.group(1) | env['CXXVERSION'] = match.group(1) | |||
env['CCDEPFLAGS'] = '-MMD -MF ${TARGET}.d' | ||||
env["NINJA_DEPFILE_PARSE_FORMAT"] = 'clang' | ||||
def exists(env): | def exists(env): | |||
return env.Detect(compilers) | return env.Detect(compilers) | |||
# Local Variables: | # Local Variables: | |||
# tab-width:4 | # tab-width:4 | |||
# indent-tabs-mode:nil | # indent-tabs-mode:nil | |||
# End: | # End: | |||
# vim: set expandtab tabstop=4 shiftwidth=4: | # vim: set expandtab tabstop=4 shiftwidth=4: | |||
End of changes. 1 change blocks. | ||||
0 lines changed or deleted | 3 lines changed or added |