Skip to content

Commit 6562bbb

Browse files
committed
Correct regex replace for PROJECT_DEPENDENCIES .h/.cpp
1 parent 8f80e65 commit 6562bbb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

build_platform.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,7 @@ def write_dependencies_to_header(dependencies, output_file):
396396
f.write('extern const char* project_dependencies;\n\n')
397397
f.write('#endif // PROJECT_DEPENDENCIES_H\n')
398398
# cpp file
399-
with open(re.sub(r'\.h$','.cpp'), 'w') as f:
399+
with open(re.sub(r'\.h$','.cpp', output_file), 'w') as f:
400400
f.write('#include "print_dependencies.h"\n\n')
401401
f.write('const char* project_dependencies = R"(\n')
402402

0 commit comments

Comments
 (0)