From b95dda68d1251b60c11939fc38cff2e0ede92bf2 Mon Sep 17 00:00:00 2001 From: Laurent Sansonetti Date: Wed, 19 Sep 2012 16:39:40 +0200 Subject: [PATCH] only strip symbols in distribution mode (because it breaks the repl module otherwise) --- lib/motion/project/builder.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/motion/project/builder.rb b/lib/motion/project/builder.rb index f88a641b..496eb939 100644 --- a/lib/motion/project/builder.rb +++ b/lib/motion/project/builder.rb @@ -460,8 +460,8 @@ EOS sh "/usr/bin/dsymutil \"#{main_exec}\" -o \"#{dsym_path}\"" end - # Strip all symbols. Only in release mode. - if main_exec_created and config.release? + # Strip all symbols. Only in distribution mode. + if main_exec_created and config.distribution_mode App.info "Strip", main_exec sh "#{config.locate_binary('strip')} \"#{main_exec}\"" end