diff options
author | Fedor Indutny <fedor.indutny@gmail.com> | 2014-02-21 01:03:03 +0400 |
---|---|---|
committer | Fedor Indutny <fedor.indutny@gmail.com> | 2014-02-21 01:03:03 +0400 |
commit | e0c530259050c4ecc6fe9cf8963992575e43f376 (patch) | |
tree | aec89dd5bad4445141bd4a3eb18f8cc45d74b2c4 | |
parent | a6f89ccd76a7b5daea774b84552385597c4a2579 (diff) | |
download | android-node-v8-e0c530259050c4ecc6fe9cf8963992575e43f376.tar.gz android-node-v8-e0c530259050c4ecc6fe9cf8963992575e43f376.tar.bz2 android-node-v8-e0c530259050c4ecc6fe9cf8963992575e43f376.zip |
installer: copy `node.d` only with node_use_dtrace
-rwxr-xr-x | tools/install.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/tools/install.py b/tools/install.py index f51d95a129..25bd3493d4 100755 --- a/tools/install.py +++ b/tools/install.py @@ -129,10 +129,8 @@ def subdir_files(path, dest, action): def files(action): action(['out/Release/node'], 'bin/node') - # install unconditionally, checking if the platform supports dtrace doesn't - # work when cross-compiling and besides, there's at least one linux flavor - # with dtrace support now (oracle's "unbreakable" linux) - action(['out/Release/node.d'], 'lib/dtrace/node.d') + if 'true' == variables.get('node_use_dtrace'): + action(['out/Release/node.d'], 'lib/dtrace/node.d') if 'freebsd' in sys.platform or 'openbsd' in sys.platform: action(['doc/node.1'], 'man/man1/') |