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(
622
622
if (clangSupportsPragmaAttributeWithSwiftAttr ())
623
623
invocationArgStrs.push_back (" -D__SWIFT_ATTR_SUPPORTS_SENDABLE_DECLS=1" );
624
624
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
-
630
625
if (triple.isXROS ()) {
631
626
// FIXME: This is a gnarly hack until some macros get adjusted in the SDK.
632
627
invocationArgStrs.insert (invocationArgStrs.end (), {
@@ -688,6 +683,11 @@ void importer::getNormalInvocationArguments(
688
683
if (LangOpts.hasFeature (Feature::SendingArgsAndResults))
689
684
invocationArgStrs.push_back (" -D__SWIFT_ATTR_SUPPORTS_SENDING=1" );
690
685
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
+
691
691
if (searchPathOpts.getSDKPath ().empty ()) {
692
692
invocationArgStrs.push_back (" -Xclang" );
693
693
invocationArgStrs.push_back (" -nostdsysteminc" );
You can’t perform that action at this time.
0 commit comments