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.
This commit is contained in:
Cheng Zhao 2014-08-11 11:08:29 +00:00
parent 79dfb2d2f3
commit f96485f950
2 changed files with 10 additions and 1 deletions

View file

@ -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"

6
tools/posix/strip.sh Executable file
View file

@ -0,0 +1,6 @@
#!/bin/bash
# Ignore errors from strip.
strip "$@"
exit 0