From: Cheng Zhao Date: Mon, 11 Aug 2014 11:08:29 +0000 (+0000) Subject: linux: Fix error when generating symbols. X-Git-Tag: v0.15.6~9 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=f96485f950a49d2e4bfac16cd8d63d2901435965;p=electron.git linux: Fix error when generating symbols. Somehow strip would return 1 when a directory is passed, so we have to wrap it in a script to avoid the error. --- diff --git a/atom.gyp b/atom.gyp index 1dbf2c41..e02b70a6 100644 --- a/atom.gyp +++ b/atom.gyp @@ -636,7 +636,10 @@ # Gyp action requires a output file, add a fake one here. '<(PRODUCT_DIR)/dummy_file', ], - 'action': [ 'strip', '<@(_inputs)' ], + 'action': [ + 'tools/posix/strip.sh', + '<@(_inputs)', + ], }, ], }], # OS=="linux" diff --git a/tools/posix/strip.sh b/tools/posix/strip.sh new file mode 100755 index 00000000..4f4f19ae --- /dev/null +++ b/tools/posix/strip.sh @@ -0,0 +1,6 @@ +#!/bin/bash + +# Ignore errors from strip. +strip "$@" + +exit 0