@@ -375,11 +375,11 @@ ifeq ($(OSTYPE),os400)
375
375
DOCBUILDSTAMP_PREREQS := $(DOCBUILDSTAMP_PREREQS ) out/$(BUILDTYPE ) /node.exp
376
376
endif
377
377
378
- node_use_openssl = $(call available-node,"-p" \
379
- "process.versions.openssl != undefined")
378
+ node_use_openssl_and_icu = $(call available-node,"-p" \
379
+ "process.versions.openssl != undefined && process.versions.icu != undefined ")
380
380
test/addons/.docbuildstamp : $(DOCBUILDSTAMP_PREREQS ) tools/doc/node_modules
381
- @if [ " $( shell $( node_use_openssl ) ) " != " true" ]; then \
382
- echo " Skipping .docbuildstamp (no crypto)" ; \
381
+ @if [ " $( shell $( node_use_openssl_and_icu ) ) " != " true" ]; then \
382
+ echo " Skipping .docbuildstamp (no crypto and/or no ICU )" ; \
383
383
else \
384
384
$(RM ) -r test/addons/?? _* /; \
385
385
[ -x $( NODE) ] && $(NODE ) $< || node $< ; \
@@ -535,7 +535,7 @@ NATIVE_SUITES ?= addons js-native-api node-api
535
535
# CI_* variables should be kept synchronized with the ones in vcbuild.bat
536
536
CI_NATIVE_SUITES ?= $(NATIVE_SUITES ) benchmark
537
537
CI_JS_SUITES ?= $(JS_SUITES ) pummel
538
- ifeq ($(node_use_openssl ) , false)
538
+ ifeq ($(node_use_openssl_and_icu ) , false)
539
539
CI_DOC := doctool
540
540
else
541
541
CI_DOC =
@@ -632,8 +632,8 @@ test-hash-seed: all ## Verifu that the hash seed used by V8 for hashing is rando
632
632
633
633
.PHONY : test-doc
634
634
test-doc : doc-only lint-md # # Build, lint, and verify the docs.
635
- @if [ " $( shell $( node_use_openssl ) ) " != " true" ]; then \
636
- echo " Skipping test-doc (no crypto)" ; \
635
+ @if [ " $( shell $( node_use_openssl_and_icu ) ) " != " true" ]; then \
636
+ echo " Skipping test-doc (no crypto and/or no ICU )" ; \
637
637
else \
638
638
$(PYTHON ) tools/test.py $(PARALLEL_ARGS ) doctool; \
639
639
fi
@@ -749,17 +749,17 @@ apidocs_json = $(addprefix out/,$(apidoc_sources:.md=.json))
749
749
apiassets = $(subst api_assets,api/assets,$(addprefix out/,$(wildcard doc/api_assets/* ) ) )
750
750
751
751
tools/doc/node_modules : tools/doc/package.json
752
- @if [ " $( shell $( node_use_openssl ) ) " != " true" ]; then \
753
- echo " Skipping tools/doc/node_modules (no crypto)" ; \
752
+ @if [ " $( shell $( node_use_openssl_and_icu ) ) " != " true" ]; then \
753
+ echo " Skipping tools/doc/node_modules (no crypto and/or no ICU )" ; \
754
754
else \
755
755
cd tools/doc && $(call available-node,$(run-npm-ci ) ) \
756
756
fi
757
757
758
758
.PHONY : doc-only
759
759
doc-only : tools/doc/node_modules \
760
760
$(apidoc_dirs ) $(apiassets ) # # Build the docs with the local or the global Node.js binary.
761
- @if [ " $( shell $( node_use_openssl ) ) " != " true" ]; then \
762
- echo " Skipping doc-only (no crypto)" ; \
761
+ @if [ " $( shell $( node_use_openssl_and_icu ) ) " != " true" ]; then \
762
+ echo " Skipping doc-only (no crypto and/or no ICU )" ; \
763
763
else \
764
764
$(MAKE ) out/doc/api/all.html out/doc/api/all.json out/doc/api/stability; \
765
765
fi
@@ -1382,8 +1382,8 @@ lint-js-fix: tools/eslint/node_modules/eslint/bin/eslint.js ## Lint and fix the
1382
1382
# Note that on the CI `lint-js-ci` is run instead.
1383
1383
lint-js-doc : LINT_JS_TARGETS=doc
1384
1384
lint-js lint-js-doc : tools/eslint/node_modules/eslint/bin/eslint.js # # Lint the JavaScript code with eslint./eslint/bin/eslint.js
1385
- @if [ " $( shell $( node_use_openssl ) ) " != " true" ]; then \
1386
- echo " Skipping $@ (no crypto)" ; \
1385
+ @if [ " $( shell $( node_use_openssl_and_icu ) ) " != " true" ]; then \
1386
+ echo " Skipping $@ (no crypto and/or no ICU )" ; \
1387
1387
else \
1388
1388
echo " Running JS linter..." ; \
1389
1389
$(call available-node,$(run-lint-js ) ) \
0 commit comments