fix: support clean SDK builds and portable C6 compiler flags

Create the SDK source directory before pioarduino populates it so its
project generator supplies app_main when Arduino autostart is disabled.

Skip TinyUSB setup for S2 clean targets before accessing SDK packages.
Move C6 constexpr attributes into a forced include header to preserve the
size optimizations across SDK metadata parsing and POSIX shell execution.
This commit is contained in:
Yurii authored and Yurii committed 2026-11-23 19:25:37 +03:00
1 parent 8fafa7fa45
commit 97ac190bef
4 files changed
+16 -3

No files matched your search

+5
View File
@@ -0,0 +1,5 @@
#pragma once
// Preserve C6 size optimizations through SDK metadata and shell parsing.
#define _GLIBCXX20_CONSTEXPR __attribute__((cold)) constexpr
#define _GLIBCXX23_CONSTEXPR __attribute__((cold)) constexpr