Skip to content

Commit 9a294c6

Browse files
committed
tools: fix installing headers on windows
Installing headers on windows skips v8 headers in folders cppgc and libplatform caused by difference in directory separators returned by os.walk vs v8_headers whitelist. This change simply normalizes separators to match v8_headers whitelist.
1 parent 2a871df commit 9a294c6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tools/install.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@ def corepack_files(action):
123123
def subdir_files(path, dest, action):
124124
ret = {}
125125
for dirpath, dirnames, filenames in os.walk(path):
126+
if sys.platform == 'win32': dirpath = dirpath.replace('\\', '/')
126127
files_in_path = [dirpath + '/' + f for f in filenames if f.endswith('.h')]
127128
ret[dest + dirpath.replace(path, '')] = files_in_path
128129
for subdir, files_in_path in ret.items():

0 commit comments

Comments
 (0)