9 years, 10 months ago.

Ignoring imported libraries

Is it possible to ignore a library that is imported but not used? I am testing on different boards and when I switch between Arch and ST Nucleo I have to delete the USBDevice library since ST doesn't need it. Even though my #if defines are setup to skip it. I noticed it still compiles it even if the library isn't used.

1 Answer

9 years, 10 months ago.

Yes, not supported. The library should be guarded to be compiled by preprocessor macros - that's how it is currently. The entire program is compiled and linked.

Regards,
0xc0170

Accepted Answer