[clang][Modules] Add -fsystem-module flag
authorMichael Spencer <bigcheesegs@gmail.com>
Sat, 29 Feb 2020 01:31:52 +0000 (17:31 -0800)
committerMichael Spencer <bigcheesegs@gmail.com>
Tue, 3 Mar 2020 22:14:24 +0000 (14:14 -0800)
commit27a3ecee45584f6e78b46741111ebbbe5554faad
tree4851a5c2f35bb5990e2b0cc5e44373625bb39805
parentaa85b437a970a12b74a8793cbd98dbb2f95afb6d
[clang][Modules] Add -fsystem-module flag

The -fsystem-module flag is used when explicitly building a module. It
forces the module to be treated as a system module. This is used when
converting an implicit build to an explicit build to match the
systemness the implicit build would have had for a given module.

Differential Revision: https://reviews.llvm.org/D75395
clang/include/clang/Driver/Options.td
clang/include/clang/Frontend/FrontendOptions.h
clang/lib/Frontend/CompilerInvocation.cpp
clang/test/Modules/fsystem-module.m [new file with mode: 0644]