File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -133,7 +133,8 @@ class GccArm(Exporter):
133
133
def generate (self ):
134
134
# "make" wants Unix paths
135
135
self .resources .win_to_unix ()
136
- self .resources .relative_to (self .prj_paths [0 ])
136
+ if self .sources_relative :
137
+ self .resources .relative_to (self .prj_paths [0 ])
137
138
138
139
to_be_compiled = []
139
140
for r_type in ['s_sources' , 'c_sources' , 'cpp_sources' ]:
@@ -159,7 +160,7 @@ def generate(self):
159
160
'libraries' : libraries ,
160
161
'symbols' : self .get_symbols (),
161
162
'cpu_flags' : self .toolchain .cpu ,
162
- 'vpath' : [relpath (s , build_dir ) for s in self .prj_paths ] if self .sources_relative else ["../ " ]
163
+ 'vpath' : [relpath (s , build_dir ) for s in self .prj_paths ] if self .sources_relative else [".." ]
163
164
}
164
165
165
166
for key in ['include_paths' , 'library_paths' , 'linker_script' ]:
You can’t perform that action at this time.
0 commit comments