Skip to content

Commit df089b5

Browse files
bridadanadbridge
authored andcommitted
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).
1 parent d4a3ba8 commit df089b5

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

tools/toolchains/iar.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,14 +60,16 @@ def __init__(self, target, notify=None, macros=None,
6060
# custom c flags
6161
if target.core == "Cortex-M4F":
6262
c_flags_cmd = [
63-
"--cpu", "Cortex-M4F",
64-
"--thumb", "--dlib_config", join(TOOLCHAIN_PATHS['IAR'], "inc", "c", "DLib_Config_Full.h")
63+
"--cpu", "Cortex-M4F"
6564
]
6665
else:
6766
c_flags_cmd = [
68-
"--cpu", cpuchoice,
69-
"--thumb", "--dlib_config", join(TOOLCHAIN_PATHS['IAR'], "inc", "c", "DLib_Config_Full.h")
67+
"--cpu", cpuchoice
7068
]
69+
70+
c_flags_cmd.extend([
71+
"--thumb", "--dlib_config", "DLib_Config_Full.h"
72+
])
7173
# custom c++ cmd flags
7274
cxx_flags_cmd = [
7375
"--c++", "--no_rtti", "--no_exceptions"

0 commit comments

Comments
 (0)