Skip to content

Commit 773f511

Browse files
committed
Use SWIFT_BUILD_SWIFT_SYNTAX instead of SWIFT_SWIFT_PARSER
1 parent 3a3e467 commit 773f511

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/Parse/Lexer.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
// Regex lexing delivered via libSwift.
3636
static RegexLiteralLexingFn regexLiteralLexingFn = nullptr;
3737

38-
#if SWIFT_SWIFT_PARSER
38+
#if SWIFT_BUILD_SWIFT_SYNTAX
3939
void Parser_registerRegexLiteralLexingFn(RegexLiteralLexingFn fn) {
4040
regexLiteralLexingFn = fn;
4141
}

lib/Parse/ParseRegex.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
// Regex parser delivered via Swift modules.
2222
static RegexLiteralParsingFn regexLiteralParsingFn = nullptr;
2323

24-
#if SWIFT_SWIFT_PARSER
24+
#if SWIFT_BUILD_SWIFT_SYNTAX
2525
void Parser_registerRegexLiteralParsingFn(RegexLiteralParsingFn fn) {
2626
regexLiteralParsingFn = fn;
2727
}

0 commit comments

Comments
 (0)