How to: different libraries for different architectures
Hello
I have a complex project that is built in two very different ways: A): arch AMD64 glibc additional libraries in additional meson subproject paths B): arch arm32v7 musl additional libraries in installed alpine packages
Now my issue is that I've been adding a ceedling configuration that works locally, on my machine, with the A build. When pushed to CI though, the CI will do the B build, and it will fail on libraries that should only be considered for the A build.
Is it possible to define libraries conditionally on a variable like the architecture?
I have a targets subfolder in my project where yml file with different compilers and flags is defined (and can also be libraries) and then root project.yml does not have those. When I call options argument before calling the test so basically something like:
ceedling options:$(CC)_arm test:all
where $(CC) can be clang or gcc.
and in normal test target i only have (just to display how i separated architectures):
ceedling options:$(CC) test:all