mirror of https://github.com/ARMmbed/mbed-os.git
Fix normal export (no --source)
parent
fa527cf45e
commit
61ee30efb2
|
|
@ -133,6 +133,7 @@ class GccArm(Exporter):
|
||||||
def generate(self):
|
def generate(self):
|
||||||
# "make" wants Unix paths
|
# "make" wants Unix paths
|
||||||
self.resources.win_to_unix()
|
self.resources.win_to_unix()
|
||||||
|
if self.sources_relative:
|
||||||
self.resources.relative_to(self.prj_paths[0])
|
self.resources.relative_to(self.prj_paths[0])
|
||||||
|
|
||||||
to_be_compiled = []
|
to_be_compiled = []
|
||||||
|
|
@ -159,7 +160,7 @@ class GccArm(Exporter):
|
||||||
'libraries': libraries,
|
'libraries': libraries,
|
||||||
'symbols': self.get_symbols(),
|
'symbols': self.get_symbols(),
|
||||||
'cpu_flags': self.toolchain.cpu,
|
'cpu_flags': self.toolchain.cpu,
|
||||||
'vpath': [relpath(s, build_dir) for s in self.prj_paths] if self.sources_relative else ["../"]
|
'vpath': [relpath(s, build_dir) for s in self.prj_paths] if self.sources_relative else [".."]
|
||||||
}
|
}
|
||||||
|
|
||||||
for key in ['include_paths', 'library_paths', 'linker_script']:
|
for key in ['include_paths', 'library_paths', 'linker_script']:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue