Skip to content

Commit 9f3bd8c

Browse files
committed
Adaptions for clang
1 parent 139131f commit 9f3bd8c

File tree

3 files changed

+22
-1
lines changed

3 files changed

+22
-1
lines changed

β€Ž.github/workflows/trice_lib_reusable.ymlβ€Ž

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,8 @@ jobs:
7676
python3 \
7777
gcc-arm-none-eabi \
7878
binutils-arm-none-eabi \
79+
libnewlib-dev \
80+
libnewlib-arm-none-eabi \
7981
clang \
8082
llvm \
8183
lld
@@ -155,7 +157,18 @@ jobs:
155157
156158
# On Ubuntu runners the Newlib headers are installed by the gcc-arm-none-eabi package.
157159
# We locate the directory containing stdlib.h via dpkg to avoid hardcoded paths.
158-
NEWLIB_STDLIB="$(dpkg -L gcc-arm-none-eabi | grep -E '/include/stdlib\.h$' | head -n 1)"
160+
161+
# NEWLIB_STDLIB="$(dpkg -L gcc-arm-none-eabi | grep -E '/include/stdlib\.h$' | head -n 1)"
162+
# Find Newlib's stdlib.h on Ubuntu runners (package split varies by distro/version).
163+
164+
# Locate stdlib.h provided by Newlib headers (works even if the package name differs).
165+
NEWLIB_STDLIB="$(dpkg -L libnewlib-dev 2>/dev/null | grep -E '/stdlib\.h$' | head -n 1 || true)"
166+
167+
# Fallback: search all installed packages (slower, but very robust in CI).
168+
if [ -z "${NEWLIB_STDLIB}" ]; then
169+
NEWLIB_STDLIB="$(dpkg -L $(dpkg -l | awk '/^ii/{print $2}') 2>/dev/null | grep -E '/newlib/stdlib\.h$' | head -n 1 || true)"
170+
fi
171+
159172
NEWLIB_INC="$(dirname "${NEWLIB_STDLIB}")"
160173
161174
# Fail early with a clear error if paths are missing.

β€ŽCHANGELOG.mdβ€Ž

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -946,6 +946,14 @@ Used git log command: `git log --oneline v0.72.5..HEAD | grep -v wip >> CHANGELO
946946
Used command: `./gitLogWithBranches.sh --since 2025-04-01` and unimportant lines and infos removed
947947

948948
```txt
949+
* 3fc39014 2025-12-19 Adaptions for clang
950+
* c101f177 2025-12-19 trice build & install steps added
951+
* 9e17252f 2025-12-19 improved detect_arm_include_dir()
952+
* 61e3bd36 2025-12-19 trice lib build scripts hardened for CI
953+
* e9b283bc 2025-12-18 trice lib build ci workflow added
954+
* 6a440bc3 2025-12-18 go test coverage added to testAll.sh
955+
* 42400a4a 2025-12-17 Create SECURITY.md for security policy (#593)
956+
* 96032990 2025-12-17 go coverage stuff added/updated
949957
* 96032990 2025-12-17 go coverage stuff added/updated
950958
* df9864b3 2025-12-16 `temp/` not as link - is does not exist on the server
951959
* 35e5f212 2025-12-16 scan repo added

β€Ždocs/TriceUserManual.pdfβ€Ž

4.7 MB
Binary file not shown.

0 commit comments

Comments
Β (0)