From df089b5fb8129bbca0464a96529445d6bed11247 Mon Sep 17 00:00:00 2001 From: Brian Daniels Date: Fri, 9 Dec 2016 12:02:51 -0600 Subject: [PATCH] Removing aboslute path to Dlib config for IAR compiler This fixes an issue where the absolute path causes a file error if the compiler paths are configured incorrectly. It uses a relative path instead now (the files appears to be in the default search path). --- tools/toolchains/iar.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/tools/toolchains/iar.py b/tools/toolchains/iar.py index 46ada3a703..cf4db9ee5e 100644 --- a/tools/toolchains/iar.py +++ b/tools/toolchains/iar.py @@ -60,14 +60,16 @@ class IAR(mbedToolchain): # custom c flags if target.core == "Cortex-M4F": c_flags_cmd = [ - "--cpu", "Cortex-M4F", - "--thumb", "--dlib_config", join(TOOLCHAIN_PATHS['IAR'], "inc", "c", "DLib_Config_Full.h") + "--cpu", "Cortex-M4F" ] else: c_flags_cmd = [ - "--cpu", cpuchoice, - "--thumb", "--dlib_config", join(TOOLCHAIN_PATHS['IAR'], "inc", "c", "DLib_Config_Full.h") + "--cpu", cpuchoice ] + + c_flags_cmd.extend([ + "--thumb", "--dlib_config", "DLib_Config_Full.h" + ]) # custom c++ cmd flags cxx_flags_cmd = [ "--c++", "--no_rtti", "--no_exceptions"