Comment by pjmlp

6 months ago

That is something I never have to care on my C++ projects, because I always make use of binary libraries, unless I am forced to compile from source.

Unfortunately that doesn't seem to ever be a scenario cargo will support out of the box.

The actual reason that you don't have to care about this on your C++ project is because C++ doesn't let you define macros in C++, you can only define them in the preprocessor language. Therefore no compilation is needed to execute them.

  • I never write macros in C++, other than header guards, for years now.

    I belong to the school of thought that C style macros in C++ should be nuked.

    Exception being source code I don't own.