Skip to content

Commit a873c42

Browse files
authored
Fix rolling build for Arduino due (#1279)
* Add fail fast to library gen script Signed-off-by: acuadros95 <[email protected]> * Revert CXX version for Arduino due Signed-off-by: acuadros95 <[email protected]> --------- Signed-off-by: acuadros95 <[email protected]>
1 parent 861e402 commit a873c42

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

extras/library_generation/cortex_m3_toolchain.cmake

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ set(CMAKE_CXX_COMPILER $ENV{TOOLCHAIN_PREFIX}g++)
88
SET(CMAKE_C_COMPILER_WORKS 1 CACHE INTERNAL "")
99
SET(CMAKE_CXX_COMPILER_WORKS 1 CACHE INTERNAL "")
1010

11+
SET(CMAKE_CXX_STANDARD 14 CACHE INTERNAL "")
12+
1113
set(FLAGS "-O2 -ffunction-sections -fdata-sections -fno-exceptions -mcpu=cortex-m3 -nostdlib -DARDUINO=10813 -mthumb --param max-inline-insns-single=500 -DF_CPU=84000000L -D'RCUTILS_LOG_MIN_SEVERITY=RCUTILS_LOG_MIN_SEVERITY_NONE'" CACHE STRING "" FORCE)
1214

1315
set(CMAKE_C_FLAGS_INIT "-std=c11 ${FLAGS} -DCLOCK_MONOTONIC=0 -D'__attribute__(x)='" CACHE STRING "" FORCE)

extras/library_generation/library_generation.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
#!/bin/bash
22

3+
# Fail fast
4+
set -e
5+
36
PLATFORMS=()
47
while getopts "p:" o; do
58
case "$o" in

0 commit comments

Comments
 (0)