build(windows): harden native SITL toolchains

Add compiler-specific CMake helpers and use them across Windows-sensitive targets so MSVC and MinGW can share the native SITL build without leaking unsupported flags between compilers.

Signed-off-by: Nuno Marques <n.marques21@hotmail.com>
This commit is contained in:
Nuno Marques
2026-05-05 20:56:00 -07:00
parent 9d54657475
commit 88af828724
60 changed files with 637 additions and 179 deletions
+5 -1
View File
@@ -90,7 +90,11 @@ jobs:
shell: pwsh
run: |
python -m pip install --upgrade pip
python -m pip install jinja2 pyyaml toml numpy packaging jsonschema future empy pyros-genmsg
# empy pinned <4: PX4's msg/uxrce_dds/flight_tasks/zenoh generators
# use the empy 3.x Interpreter(...options={em.RAW_OPT: True,
# em.BUFFERED_OPT: True}) API removed in empy 4.x. Matches the pin
# in Tools/setup/requirements.txt and Tools/setup/windows.ps1.
python -m pip install jinja2 pyyaml toml numpy packaging jsonschema future "empy>=3.3,<4" pyros-genmsg kconfiglib
- name: Install Ninja (MSVC)
if: matrix.toolchain == 'MSVC'