Correct profile handling in GNUARMEclipse exporter

pull/4445/head
Jimmy Brisson 2017-06-05 10:00:17 -05:00 committed by Sam Grove
parent fc6c2b85ff
commit 64baee8ac7
1 changed files with 1 additions and 2 deletions

View File

@ -202,14 +202,13 @@ class GNUARMEclipse(Exporter):
print 'Build configuration: {0}'.format(opts['name'])
profile = profiles[id]
profile_toolchain = profile[self.TOOLCHAIN]
# A small hack, do not bother with src_path again,
# pass an empty string to avoid crashing.
src_paths = ['']
target_name = self.toolchain.target.name
toolchain = prepare_toolchain(
src_paths, "", target_name, self.TOOLCHAIN, build_profile=profile_toolchain)
src_paths, "", target_name, self.TOOLCHAIN, build_profile=[profile])
# Hack to fill in build_dir
toolchain.build_dir = self.toolchain.build_dir