Skip to content

Commit 8dedc93

Browse files
committed
tools: remove unneeded logic in gyp_node.py
1 parent b5e16ad commit 8dedc93

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

tools/gyp_node.py

+3-7
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,9 @@
1414
output_dir = os.path.join(os.path.abspath(node_root), 'out')
1515

1616
def run_gyp(args):
17-
# GYP bug.
18-
# On msvs it will crash if it gets an absolute path.
19-
# On Mac/make it will crash if it doesn't get an absolute path.
20-
a_path = node_root if sys.platform == 'win32' else os.path.abspath(node_root)
21-
args.append(os.path.join(a_path, 'node.gyp'))
22-
common_fn = os.path.join(a_path, 'common.gypi')
23-
options_fn = os.path.join(a_path, 'config.gypi')
17+
args.append(os.path.join(node_root, 'node.gyp'))
18+
common_fn = os.path.join(node_root, 'common.gypi')
19+
options_fn = os.path.join(node_root, 'config.gypi')
2420

2521
if os.path.exists(common_fn):
2622
args.extend(['-I', common_fn])

0 commit comments

Comments
 (0)