<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">When I try to do <div class=""><br class=""></div><div class="">clang++ main.cpp -emit-llvm</div><div class=""><br class=""></div><div class="">without -S, clang says that he can’t:</div><div class=""><br class=""></div><div class=""><div style="margin: 0px; line-height: normal; font-family: 'Andale Mono'; color: rgb(41, 249, 20); background-color: rgb(0, 0, 0);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">clang: error: -emit-llvm cannot be used when linking</span></div></div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">why can’t it emit the IR in a complete compilation process?</div><div class=""><br class=""></div><div class="">Is there a particular technical reason or just to avoid confusing jobs?</div></body></html>