Fixes in 2014/endoh1/Rakefile

Rather than have the rake.sh script remove prog.dSYM the Rakefile no
longer uses -g.

Also to silent the misleading-indentation warning the Rakefile has had
the -Wno-misleading-indentation option added to it too.
This commit is contained in:
Cody Boone Ferguson committed 2024-05-01 10:17:10 -07:00
1 parent ed832c7f3b
commit 9dd3054f0d
5 files changed
+10 -2

No files matched your search

+1 -1
View File
@@ -27,7 +27,7 @@ file "prog.c" => ["main.c", "gen-prog.rb", "prog-tmpl.c"] do |t|
end
file "prog" => "prog.c" do |t|
sh "gcc", "-Wall", "-W", "-Wextra", "-o", t.name, t.prerequisites[0], "-g"
sh "gcc", "-Wall", "-W", "-Wextra", "-Wno-misleading-indentation", "-o", t.name, t.prerequisites[0]
end
task :test => :default do
+1 -1
View File
@@ -40,5 +40,5 @@ elif [[ ! -x prog ]]; then
exit 1
else
./prog 1>&2
exit "$?"
fi
rm -rf prog.dSYM
+1
View File
@@ -50,5 +50,6 @@ echo 1>&2
read -r -p "Do you want to run make rake (Y/N)? "
if [[ "$REPLY" == "y" || "$REPLY" == "Y" ]]; then
make clobber
make rake 2>/dev/null
fi