Skip to content

Commit e0c5302

Browse files
committed
installer: copy node.d only with node_use_dtrace
1 parent a6f89cc commit e0c5302

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

tools/install.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -129,10 +129,8 @@ def subdir_files(path, dest, action):
129129
def files(action):
130130
action(['out/Release/node'], 'bin/node')
131131

132-
# install unconditionally, checking if the platform supports dtrace doesn't
133-
# work when cross-compiling and besides, there's at least one linux flavor
134-
# with dtrace support now (oracle's "unbreakable" linux)
135-
action(['out/Release/node.d'], 'lib/dtrace/node.d')
132+
if 'true' == variables.get('node_use_dtrace'):
133+
action(['out/Release/node.d'], 'lib/dtrace/node.d')
136134

137135
if 'freebsd' in sys.platform or 'openbsd' in sys.platform:
138136
action(['doc/node.1'], 'man/man1/')

0 commit comments

Comments
 (0)