mirror of https://github.com/ARMmbed/mbed-os.git
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/3414/head
parent
8f649493a3
commit
105a9b3ea6
|
|
@ -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"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue