mirror of
https://github.com/justinian/jsix.git
synced 2025-12-10 00:14:32 -08:00
Fix ninja not reloading buildfiles on regen
This commit is contained in:
@@ -144,9 +144,13 @@ def main(buildroot):
|
|||||||
buildfile=buildfile,
|
buildfile=buildfile,
|
||||||
version=git_version))
|
version=git_version))
|
||||||
|
|
||||||
buildfile = join(buildroot, "build.ninja")
|
# Top level buildfile cannot use an absolute path or ninja won't
|
||||||
|
# reload itself properly on changes.
|
||||||
|
# See: https://github.com/ninja-build/ninja/issues/1240
|
||||||
|
buildfile = "build.ninja"
|
||||||
buildfiles.append(buildfile)
|
buildfiles.append(buildfile)
|
||||||
with open(buildfile, 'w') as out:
|
|
||||||
|
with open(join(buildroot, buildfile), 'w') as out:
|
||||||
#print("Generating main build.ninja")
|
#print("Generating main build.ninja")
|
||||||
template = env.get_template('build.ninja.j2')
|
template = env.get_template('build.ninja.j2')
|
||||||
templates.add(template.filename)
|
templates.add(template.filename)
|
||||||
|
|||||||
@@ -103,7 +103,7 @@ rule makefat
|
|||||||
description = Creating $name
|
description = Creating $name
|
||||||
command = $
|
command = $
|
||||||
cp $srcroot/assets/diskbase.img $out; $
|
cp $srcroot/assets/diskbase.img $out; $
|
||||||
mcopy -s -D o -i $out@@1024K $builddir/fatroot/* ::/
|
mcopy -s -D o -i $out@@1M $builddir/fatroot/* ::/
|
||||||
|
|
||||||
{% for target in targets %}
|
{% for target in targets %}
|
||||||
subninja {{ target }}/target.ninja
|
subninja {{ target }}/target.ninja
|
||||||
|
|||||||
Reference in New Issue
Block a user