Skip to content

Commit 797787f

Browse files
authored
IAR compile error (ARMmbed#93)
* Enable restrict keyword for IAR * Enable build test for nucleo and odin and IAR
1 parent 18ce236 commit 797787f

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

Jenkinsfile

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -43,16 +43,17 @@ def repoName = "mbed-bootloader-internal"
4343

4444
// List of targets to compile
4545
def targets = [
46-
"K64F": ["default"]
46+
"K64F": ["default"],
47+
"NUCLEO_F429ZI": ["default"],
48+
"UBLOX_EVK_ODIN_W2": ["default"]
4749
]
4850

4951
// Map morpheus toolchains to compiler labels on Jenkins
5052
def toolchains = [
51-
ARM: "armcc", // open issue: https://github.com/ARMmbed/mbed-os/issues/125
52-
GCC_ARM: "arm-none-eabi-gcc"
53-
// open issue: https://github.com/ARMmbed/mbed-os/issues/357 (workaround exists here),
54-
// IAR: "iar_arm"
55-
]
53+
ARM: "armcc",
54+
GCC_ARM: "arm-none-eabi-gcc",
55+
IAR: "iar_arm"
56+
]
5657

5758
def configurations = [
5859
"default": "mbed_app.json"
@@ -120,7 +121,7 @@ def morpheusBuildStep(target,
120121
execute("mbed ls")
121122
execute("mbed compile -m ${target} -t ${toolchain} -c -v --profile=tiny.json")
122123

123-
if (toolchain == "ARM") {
124+
if (toolchain == "ARM" && target == "K64F") {
124125
// setup power cut test dependencies
125126
execute("mbed add https://github.com/ARMmbed/power-cut-jig --protocol ssh")
126127

tiny.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
"IAR": {
3939
"common": [
4040
"--no_wrap_diagnostics", "-e",
41-
"--diag_suppress=Pa050,Pa084,Pa093,Pa082", "-Ohz", "-DNDEBUG"],
41+
"--diag_suppress=Pa050,Pa084,Pa093,Pa082", "-Ohz", "-DNDEBUG", "--enable_restrict"],
4242
"asm": [],
4343
"c": ["--vla"],
4444
"cxx": ["--guard_calls", "--no_static_destruction"],

0 commit comments

Comments
 (0)