mirror of
https://github.com/pmret/papermario.git
synced 2024-11-12 22:12:38 +01:00
pipefail
This commit is contained in:
parent
2275b4d3ec
commit
c5d4a5a05c
10
configure.py
10
configure.py
@ -190,12 +190,12 @@ async def main():
|
|||||||
n.newline()
|
n.newline()
|
||||||
|
|
||||||
n.rule("cc",
|
n.rule("cc",
|
||||||
command=f"{cpp} $cppflags $in -o - | $iconv | tools/$os/cc1 $cflags -o - | tools/$os/mips-nintendo-nu64-as -EB -G 0 - -o $out",
|
command=f"bash -o pipefail -c '{cpp} $cppflags $in -o - | $iconv | tools/$os/cc1 $cflags -o - | tools/$os/mips-nintendo-nu64-as -EB -G 0 - -o $out'",
|
||||||
description="cc $in",
|
description="cc $in",
|
||||||
depfile="$out.d",
|
depfile="$out.d",
|
||||||
deps="gcc")
|
deps="gcc")
|
||||||
n.rule("cc_dsl",
|
n.rule("cc_dsl",
|
||||||
command=f"{cpp} $cppflags $in -o - | $python tools/compile_dsl_macros.py | $iconv | tools/$os/cc1 $cflags -o - | tools/$os/mips-nintendo-nu64-as -EB -G 0 - -o $out",
|
command=f"bash -o pipefail -c '{cpp} $cppflags $in -o - | $python tools/compile_dsl_macros.py | $iconv | tools/$os/cc1 $cflags -o - | tools/$os/mips-nintendo-nu64-as -EB -G 0 - -o $out'",
|
||||||
description="cc (with dsl) $in",
|
description="cc (with dsl) $in",
|
||||||
depfile="$out.d",
|
depfile="$out.d",
|
||||||
deps="gcc")
|
deps="gcc")
|
||||||
@ -271,7 +271,7 @@ async def main():
|
|||||||
n.newline()
|
n.newline()
|
||||||
|
|
||||||
n.rule("sha1sum",
|
n.rule("sha1sum",
|
||||||
command="sha1sum -c $in",
|
command="sha1sum -c $in && touch $out",
|
||||||
description="compare")
|
description="compare")
|
||||||
n.newline()
|
n.newline()
|
||||||
|
|
||||||
@ -285,10 +285,10 @@ async def main():
|
|||||||
n.build("$builddir/$target.ld", "cpp", "$target.ld")
|
n.build("$builddir/$target.ld", "cpp", "$target.ld")
|
||||||
n.build("$builddir/$target.elf", "link", "$builddir/$target.ld", implicit=[obj(o) for o in objects], implicit_outputs="$builddir/$target.map")
|
n.build("$builddir/$target.elf", "link", "$builddir/$target.ld", implicit=[obj(o) for o in objects], implicit_outputs="$builddir/$target.map")
|
||||||
n.build("$target.z64", "rom", "$builddir/$target.elf", implicit="tools/n64crc")
|
n.build("$target.z64", "rom", "$builddir/$target.elf", implicit="tools/n64crc")
|
||||||
n.build("compare", "sha1sum", "checksum.sha1", implicit="$target.z64")
|
n.build("$builddir/is_ok", "sha1sum", "checksum.sha1", implicit="$target.z64")
|
||||||
n.newline()
|
n.newline()
|
||||||
|
|
||||||
n.default("compare")
|
n.default("$builddir/is_ok")
|
||||||
n.newline()
|
n.newline()
|
||||||
|
|
||||||
# generated headers
|
# generated headers
|
||||||
|
Loading…
Reference in New Issue
Block a user