<table><tr><td style="">mwolff requested changes to this revision.<br />mwolff added a comment.<br />This revision now requires changes to proceed.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D5447">View Revision</a></tr></table><br /><div><div><p>the path of the compiler is now always the path of the compiler in the local host, which breaks when you have a runtime with a different setup. I think the changes that use <tt style="background: #ebebeb; font-size: 13px;">QStandardPaths</tt> in <tt style="background: #ebebeb; font-size: 13px;">registerDefaultCompilers</tt> should be undone and we should instead check the validity better elsewhere.</p>

<p>So, the question really is: Why was the code inloc 213 in <tt style="background: #ebebeb; font-size: 13px;">compilerprovider.cpp</tt> not working for you? If <tt style="background: #ebebeb; font-size: 13px;">gcc</tt> wasn't installed, we should get:</p>

<ul class="remarkup-list">
<li class="remarkup-list-item"><tt style="background: #ebebeb; font-size: 13px;">compiler->path() == "gcc"</tt>, i.e. not absolute</li>
<li class="remarkup-list-item"><tt style="background: #ebebeb; font-size: 13px;">QStandardpaths::findExecutable("gcc", path)</tt> should always return false for all the entries in your <tt style="background: #ebebeb; font-size: 13px;">PATH</tt></li>
<li class="remarkup-list-item">we should thus never set the gcc compiler</li>
</ul>

<p>please debug why the above didn't work for you</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R32 KDevelop</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D5447">https://phabricator.kde.org/D5447</a></div></div><br /><div><strong>To: </strong>arrowd, mwolff, arichardson<br /><strong>Cc: </strong>skalinichev, apol, kdevelop-devel<br /></div>