Does make have an option that makes the programs compile safely so that things that cause undefined behavior would instead generate a runtime error; an example being an array out of bounds? Of course, this would mean that the program runs more slowly.
If make itself doesn’t have an option, would there be another debug tool that is make-compatible?
If C++ had this feature, it would be Java. Or Python. Or C#. Or … you get the idea.
There is also ‘Managed C++’, which is a bit of a camel that could perhaps serve your purposes.
On Non-Windows platforms, the valgrind tool is the next best thing.
Various versions of Microsoft C++ have had options that add some extra checking, but nothing on the scale of these other things.