This is an archive of the discontinued LLVM Phabricator instance.

[CMake] Use correct include flag for MSVC
ClosedPublic

Authored by phosek on Sep 29 2022, 1:49 AM.

Details

Summary

When building using the MSVC driver, we need to use /imsvc rather than
-isystem for system headers.

Diff Detail

Event Timeline

phosek created this revision.Sep 29 2022, 1:49 AM
Herald added a project: Restricted Project. · View Herald TranscriptSep 29 2022, 1:49 AM
Herald added a subscriber: Enna1. · View Herald Transcript
phosek requested review of this revision.Sep 29 2022, 1:49 AM
Herald added a project: Restricted Project. · View Herald TranscriptSep 29 2022, 1:49 AM
Herald added a subscriber: Restricted Project. · View Herald Transcript
paulkirth accepted this revision.Sep 29 2022, 8:33 AM

Is this change something we need to document or mention in release notes? I'm always blurry on what changes to build/config would require those.

Otherwise this is LGTM. You may want to see if @mstorsjo has any thoughts before landing, though.

This revision is now accepted and ready to land.Sep 29 2022, 8:33 AM

Is this change something we need to document or mention in release notes? I'm always blurry on what changes to build/config would require those.

Otherwise this is LGTM. You may want to see if @mstorsjo has any thoughts before landing, though.

Nothing to add from me here - thanks for checking!

This revision was automatically updated to reflect the committed changes.