Skip to content

Commit 421a102

Browse files
committed
[Clang importer] Remove addition of -Werror=non-modular-include-in-framework-module
We shouldn't be stricter than Clang. Fixes rdar://104064443.
1 parent 59b557c commit 421a102

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

lib/ClangImporter/ClangImporter.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -502,12 +502,6 @@ importer::getNormalInvocationArguments(
502502
"-fmodules",
503503
"-Xclang", "-fmodule-feature", "-Xclang", "swift"
504504
});
505-
// Don't enforce strict rules when inside the debugger to work around search
506-
// path problems caused by a module existing in both the build/install
507-
// directory and the source directory.
508-
if (!importerOpts.DebuggerSupport)
509-
invocationArgStrs.push_back(
510-
"-Werror=non-modular-include-in-framework-module");
511505

512506
bool EnableCXXInterop = LangOpts.EnableCXXInterop;
513507

0 commit comments

Comments
 (0)