ruiu added a comment. Is this behavior the same as the MSVC linker? If it doesn't make sense to pass the /pdb option without /debug, we might want to emit an error (or warning) in the driver. https://reviews.llvm.org/D33302