Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make building regex module optional
Browse files Browse the repository at this point in the history
bstaletic committed Oct 7, 2024
1 parent 9cb5a84 commit de94776
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion build.py
Original file line number Diff line number Diff line change
@@ -568,6 +568,10 @@ def ParseArguments():
parser.add_argument( '--js-completer', action = 'store_true',
help = argparse.SUPPRESS )

parser.add_argument( '--regex', action = argparse.BooleanOptionalAction,
default = True,
help = 'Choose whether to build the regex module. '
'Defaults to True.' )
args = parser.parse_args()

# coverage is not supported for c++ on MSVC
@@ -1301,9 +1305,13 @@ def DoCmakeBuilds( args ):
BuildYcmdLib( cmake, cmake_common_args, args )
WritePythonUsedDuringBuild()

BuildRegexModule( args )
BuildWatchdogModule( args )

# NOTE: Keep BuildRegexModule() as the final step.
# If it fails, at least everything mandatory has been built.
if args.regex:
BuildRegexModule( args )


def PrintReRunMessage():
print( '',

0 comments on commit de94776

Please sign in to comment.