Skip to content

Commit 4ceec83

Browse files
authored
Merge pull request #63504 from hyp/eng/update-external-src-symbol-usr
[interop][SwiftToCxx] update external_source_symbol check for USR cla…
2 parents 68f9e84 + f4e7e1c commit 4ceec83

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/PrintAsClang/_SwiftCxxInteroperability.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
#define SWIFT_SYMBOL_MODULE(moduleValue) \
4040
__attribute__((external_source_symbol( \
4141
language = "Swift", defined_in = moduleValue, generated_declaration)))
42-
#if __has_attribute(external_source_symbol_with_usr)
42+
#if __has_attribute(external_source_symbol) > 1
4343
#define SWIFT_SYMBOL_MODULE_USR(moduleValue, usrValue) \
4444
__attribute__(( \
4545
external_source_symbol(language = "Swift", defined_in = moduleValue, \

0 commit comments

Comments
 (0)