Better Firmware with LLVM/Clang | Interrupt

Thank you for the great article! :smiley_cat:
May I ask a question regarding the freertos-example-llvm from the article ?

I get the following error when I run COMILER=clang make inside the freertos-example-llvm root.

/home/lonelyjoe/workspace/embedded/interrupt/example/freertos-example-llvm/src/main.c:5:10: fatal error: 'malloc.h' file not
      found
#include <malloc.h>
         ^~~~~~~~~~
1 error generated.
Makefile:171: recipe for target '/home/lonelyjoe/workspace/embedded/interrupt/example/freertos-example-llvm/build/src/main.o' failed
make: *** [/home/lonelyjoe/workspace/embedded/interrupt/example/freertos-example-llvm/build/src/main.o] Error 1

I found out that my ARM_CORTEXM_MULTI_DIR (thumb/v7e-m/fpv4-sp/hard) neither contains libm.a nor libc.a. Still, running COMPILER=gcc make works without issues…
May I ask for tips on how to generate libm.a & libc.a for the cortex-m target ?

Thank you :slight_smile: