From 7d0060aa7b1b6a81456c91d95d40bf4e39a71618 Mon Sep 17 00:00:00 2001 From: Sam Grove Date: Tue, 14 Jun 2016 23:31:57 +0100 Subject: [PATCH] Revert "Fix iar exporter - flags duplication and consolidations" --- tools/export/iar.py | 10 ---------- tools/export/iar_template.ewp.tmpl | 4 ++-- tools/toolchains/iar.py | 24 +++++++++++++----------- 3 files changed, 15 insertions(+), 23 deletions(-) diff --git a/tools/export/iar.py b/tools/export/iar.py index 04d0520fdd..f977933f51 100644 --- a/tools/export/iar.py +++ b/tools/export/iar.py @@ -20,7 +20,6 @@ from project_generator_definitions.definitions import ProGenDef from tools.export.exporters import Exporter from tools.targets import TARGET_MAP, TARGET_NAMES -from tools.settings import IAR_PATH # If you wish to add a new target, add it to project_generator_definitions, and then # define progen_target name in the target class (`` self.progen_target = 'my_target_name' ``) @@ -71,15 +70,6 @@ class IAREmbeddedWorkbench(Exporter): project_data['tool_specific']['iar'].setdefault("misc", {}) project_data['tool_specific']['iar'].update(tool_specific['iar']) project_data['tool_specific']['iar']['misc'].update(self.progen_flags) - # progen does not have common flags, expand c flags by common one - project_data['tool_specific']['iar']['misc']['c_flags'] += self.progen_flags['common_flags'] - # template sets full dlib, this would produce the error as it's duplicate - project_data['tool_specific']['iar']['misc']['c_flags'].remove("--dlib_config") - project_data['tool_specific']['iar']['misc']['c_flags'].remove(os.path.join(IAR_PATH, "inc", "c", "DLib_Config_Full.h")) - # these c++ flags are set by template - c++, no rtti, no exceptions - project_data['tool_specific']['iar']['misc']['cxx_flags'].remove("--c++") - project_data['tool_specific']['iar']['misc']['cxx_flags'].remove("--no_rtti") - project_data['tool_specific']['iar']['misc']['cxx_flags'].remove("--no_exceptions") project_data['common']['build_dir'] = os.path.join(project_data['common']['build_dir'], 'iar_arm') self.progen_gen_file('iar_arm', project_data) diff --git a/tools/export/iar_template.ewp.tmpl b/tools/export/iar_template.ewp.tmpl index 4b0a2633a0..45281d6f3f 100644 --- a/tools/export/iar_template.ewp.tmpl +++ b/tools/export/iar_template.ewp.tmpl @@ -622,8 +622,8 @@ 1