@Lotterleben Under the hood west calls CMake
and you can pass compiler arguments:
https://docs.zephyrproject.org/latest/guides/west/build-flash-debug.html#one-time-cmake-arguments
1 reply
@Lotterleben I struggled a lot with this in
the beginning and also needed to automate building HEC files for CI/CD so I made
https://github.com/coderbyheart/fw-nrfconnect-nrf-docker which might simplify
things for you.