File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -622,11 +622,6 @@ void importer::getNormalInvocationArguments(
622622 if (clangSupportsPragmaAttributeWithSwiftAttr ())
623623 invocationArgStrs.push_back (" -D__SWIFT_ATTR_SUPPORTS_SENDABLE_DECLS=1" );
624624
625- // Indicate that the compiler will respect macros applied to imported
626- // declarations via '__attribute__((swift_attr("@...")))'.
627- if (LangOpts.hasFeature (Feature::MacrosOnImports))
628- invocationArgStrs.push_back (" -D__SWIFT_ATTR_SUPPORTS_MACROS=1" );
629-
630625 if (triple.isXROS ()) {
631626 // FIXME: This is a gnarly hack until some macros get adjusted in the SDK.
632627 invocationArgStrs.insert (invocationArgStrs.end (), {
@@ -688,6 +683,11 @@ void importer::getNormalInvocationArguments(
688683 if (LangOpts.hasFeature (Feature::SendingArgsAndResults))
689684 invocationArgStrs.push_back (" -D__SWIFT_ATTR_SUPPORTS_SENDING=1" );
690685
686+ // Indicate that the compiler will respect macros applied to imported
687+ // declarations via '__attribute__((swift_attr("@...")))'.
688+ if (LangOpts.hasFeature (Feature::MacrosOnImports))
689+ invocationArgStrs.push_back (" -D__SWIFT_ATTR_SUPPORTS_MACROS=1" );
690+
691691 if (searchPathOpts.getSDKPath ().empty ()) {
692692 invocationArgStrs.push_back (" -Xclang" );
693693 invocationArgStrs.push_back (" -nostdsysteminc" );
You can’t perform that action at this time.
0 commit comments