From f96485f950a49d2e4bfac16cd8d63d2901435965 Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Mon, 11 Aug 2014 11:08:29 +0000 Subject: [PATCH] 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. --- atom.gyp | 5 ++++- tools/posix/strip.sh | 6 ++++++ 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100755 tools/posix/strip.sh 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 -- 2.43.0