Skip to content

Commit edbbbb4

Browse files
committed
Correct regex replace for PROJECT_DEPENDENCIES .h/.cpp
1 parent 2707c93 commit edbbbb4

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
@@ -394,7 +394,7 @@ def write_dependencies_to_header(dependencies, output_file):
394394
f.write('extern const char* project_dependencies;\n\n')
395395
f.write('#endif // PROJECT_DEPENDENCIES_H\n')
396396
# cpp file
397-
with open(re.sub(r'\.h$','.cpp'), 'w') as f:
397+
with open(re.sub(r'\.h$','.cpp', output_file), 'w') as f:
398398
f.write('#include "print_dependencies.h"\n\n')
399399
f.write('const char* project_dependencies = R"(\n')
400400

0 commit comments

Comments
 (0)