Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Simplify logic for constructing Reia's build rules

  • Loading branch information...
commit be0480800d085b39d01365673fc1f64aa07d6125 1 parent f9512b1
Tony Arcieri authored
Showing with 3 additions and 9 deletions.
  1. +3 −9 Rakefile
View
12 Rakefile
@@ -65,16 +65,10 @@ ERL_SRC = (FileList.new('src/{compiler,core}/**/*.erl') + GENERATED_SRC).uniq
QUIET_SRC = %w(src/compiler/reia_parse.erl)
ERL_SRC.each do |input|
- unless QUIET_SRC.include? input
- file output_file(input) => input do
- sh "erlc +debug_info -o ebin #{input}"
- end
- end
-end
-
-QUIET_SRC.each do |input|
file output_file(input) => input do
- sh "erlc -o ebin #{input}"
+ opts = ""
+ opts << "+debug_info" unless QUIET_SRC.include? input
+ sh "erlc #{opts} -o ebin #{input}"
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.