rake build now honors the 'keep_temps' env variable, if set, llvm bitcode and asm files will not be deleted from the build directory

This commit is contained in:
Laurent Sansonetti
2013-07-04 15:11:36 +02:00
parent a7950342f7
commit 1047948afc

View File

@@ -131,7 +131,7 @@ module Motion; module Project;
arch_obj = File.join(files_build_dir, "#{path}.#{arch}.o")
sh "#{cc} -fexceptions -c -arch #{arch} \"#{asm}\" -o \"#{arch_obj}\""
[bc, asm].each { |x| File.unlink(x) }
[bc, asm].each { |x| File.unlink(x) } unless ENV['keep_temps']
arch_objs << arch_obj
end