Dump compiler args and defines.

As part of the build, dump the compiler arguments and defines per target
into files.
This commit is contained in:
Justin C. Miller
2019-02-07 17:39:10 -08:00
parent 863e5bda15
commit 79711be46a
2 changed files with 29 additions and 0 deletions

View File

@@ -1,4 +1,5 @@
builddir = $builddir/{{ target }}
target = {{ target }}
{% block variables %}
{% endblock %}
@@ -15,3 +16,9 @@ objcopy = objcopy
{% for module in modules %}
subninja {{ module.name }}.ninja
{% endfor %}
build ${builddir}/cc.defs : dump_cc_defs | {{ buildfile }}
build ${builddir}/cxx.defs : dump_cxx_defs | {{ buildfile }}
build ${builddir}/cc.run : dump_cc_run | {{ buildfile }}
build ${builddir}/cxx.run : dump_cxx_run | {{ buildfile }}