Why does a 2-stage command-line build with clang not generate a dSYM directory?
I have a simple project I want to debug want to produce dSYM folder with debugging symbols. Running: clang++ -std=c++14 -stdlib=libc++ -g -o Lazy Lazy.cpp Creates Lazy.dSYM as I expect. However: clang++ -std=c++14 -stdlib=libc++ -g -c Lazy.cpp clang++ -stdlib=libc++ -g -o Lazy Lazy.o Does not create Lazy.dSYM (It seems that the symbols are embedded in the binary). Sadly the 2-step build is what my modified makefile does. How can I generate Lazy.dSYM from a 2-stage compile-and-link build? I don't need a dSYM directory, just debugging symbols, but would like to understand when and why it is