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).
pull/3467/head
Brian Daniels 2016-12-09 12:02:51 -06:00 committed by Anna Bridge
parent d4a3ba8d5a
commit df089b5fb8
1 changed files with 6 additions and 4 deletions

View File

@ -60,14 +60,16 @@ class IAR(mbedToolchain):
# custom c flags # custom c flags
if target.core == "Cortex-M4F": if target.core == "Cortex-M4F":
c_flags_cmd = [ c_flags_cmd = [
"--cpu", "Cortex-M4F", "--cpu", "Cortex-M4F"
"--thumb", "--dlib_config", join(TOOLCHAIN_PATHS['IAR'], "inc", "c", "DLib_Config_Full.h")
] ]
else: else:
c_flags_cmd = [ c_flags_cmd = [
"--cpu", cpuchoice, "--cpu", cpuchoice
"--thumb", "--dlib_config", join(TOOLCHAIN_PATHS['IAR'], "inc", "c", "DLib_Config_Full.h")
] ]
c_flags_cmd.extend([
"--thumb", "--dlib_config", "DLib_Config_Full.h"
])
# custom c++ cmd flags # custom c++ cmd flags
cxx_flags_cmd = [ cxx_flags_cmd = [
"--c++", "--no_rtti", "--no_exceptions" "--c++", "--no_rtti", "--no_exceptions"