<table><tr><td style="">qi437103 added a comment.
</td></tr></table><br /><div><div><p>I mistakenly set wrong include paths for Clang 3.9 and 4.0. That's why I was getting so many errors. After fix that up, everything works as expected even with <tt style="background: #ebebeb; font-size: 13px;">-nostdinc</tt> flags.</p>

<p>Remaining work:</p>

<p><tt style="background: #ebebeb; font-size: 13px;">cuda_runtime.h</tt> should already been implicitly included by Clang, but seems explicitly include that file gives more information. See limitations in <a href="https://phabricator.kde.org/D5210" style="background-color: #e7e7e7;
          border-color: #e7e7e7;
          border-radius: 3px;
          padding: 0 4px;
          font-weight: bold;
          color: black;text-decoration: none;" rel="noreferrer">D5210</a>.</p></div></div><br /><div><strong>TASK DETAIL</strong><div><a href="https://phabricator.kde.org/T5733" rel="noreferrer">https://phabricator.kde.org/T5733</a></div></div><br /><div><strong>To: </strong>qi437103<br /><strong>Cc: </strong>mwolff, kfunk, kdevelop-devel, KDevelop, qi437103, geetamc, Pilzschaf, akshaydeo, surgenight, arrowdodger<br /></div>