[build] Fix dump_cc_run not creating bash scripts

It was the difference between > and >>
This commit is contained in:
2020-08-23 17:43:18 -07:00
parent 95a35cd0bf
commit 44e29b3c4a

View File

@@ -67,7 +67,7 @@ rule dump_c_run
description = Dumping C arguments for $target description = Dumping C arguments for $target
command = $ command = $
echo "#!/bin/bash" > $out; $ echo "#!/bin/bash" > $out; $
echo '$cc $ccflags $cflags $$*' > $out; $ echo '$cc $ccflags $cflags $$*' >> $out; $
chmod a+x $out chmod a+x $out
rule cpp rule cpp
@@ -84,7 +84,7 @@ rule dump_cpp_run
description = Dumping C++ arguments for $target description = Dumping C++ arguments for $target
command = $ command = $
echo "#!/bin/bash" > $out; $ echo "#!/bin/bash" > $out; $
echo '$cc $cxxflags $ccflags $$*' > $out; $ echo '$cc $cxxflags $ccflags $$*' >> $out; $
chmod a+x $out chmod a+x $out
rule s rule s