Allow clang to colorize output in ninja

This commit is contained in:
Justin C. Miller
2019-04-18 00:28:23 -07:00
parent 88315c25a5
commit b9c8edb657
2 changed files with 12 additions and 1 deletions

10
scripts/parse_syms.py Executable file
View File

@@ -0,0 +1,10 @@
#!/usr/bin/env python3
def parse_elf(filename):
import struct
with open(filename, 'rb') as elf:
if __name__ == "__main__":
import sys
for arg in sys.argv[1:]:
parse_elf(arg)

View File

@@ -4,7 +4,8 @@
{{ super() }} {{ super() }}
ccflags = $ccflags $ ccflags = $ccflags $
-I${srcroot}/src/include $ -I${srcroot}/src/include $
-I${srcroot}/src/include/x86_64 -I${srcroot}/src/include/x86_64 $
-fcolor-diagnostics
{% endblock %} {% endblock %}
{% block baserules %} {% block baserules %}