File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -90,6 +90,11 @@ exit /b 0
90
90
set " inc_dirs_file_name = mtb-lib-inc-dirs.txt"
91
91
set " inc_dirs_file = %platform_path% \variants\%board_variant% \%inc_dirs_file_name% "
92
92
93
+ rem Delete the inc dirs file if it exists
94
+ if exist " %build_path% \%inc_dirs_file_name% " (
95
+ del " %build_path% \%inc_dirs_file_name% "
96
+ )
97
+
93
98
rem Read the inc dirs file
94
99
set " inc_dirs = "
95
100
setlocal enabledelayedexpansion
@@ -107,10 +112,12 @@ exit /b 0
107
112
set " dir = %%a "
108
113
set " dir_no_prefix = !dir:~2 ! "
109
114
110
- rem Replace the forward slashes with backslashes
111
- set " dir_no_prefix = !dir_no_prefix:/ =\ ! "
112
115
rem Prepend the platform path to the relative path
113
116
set " dir_abs_path = -I%platform_path% \!dir_no_prefix! "
117
+
118
+ rem Replace the forward slashes with backslashes
119
+ set " dir_abs_path = !dir_abs_path:/ =\ ! "
120
+
114
121
rem Change backslashes to double backsplashes
115
122
set " dir_abs_path = !dir_abs_path:\ =\\ ! "
116
123
You can’t perform that action at this time.
0 commit comments