From b4c1492ff00edcc18fc4e65c0b38af74abf5694f Mon Sep 17 00:00:00 2001 From: klzgrad Date: Wed, 4 May 2022 23:01:09 +0800 Subject: [PATCH] build.sh: Don't build Cronet for static builds --- src/build.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/build.sh b/src/build.sh index 10a9603f32..5af66ef372 100755 --- a/src/build.sh +++ b/src/build.sh @@ -68,4 +68,9 @@ export DEPOT_TOOLS_WIN_TOOLCHAIN=0 ./gn/out/gn gen "$out" --args="$flags $EXTRA_FLAGS" --script-executable=$PYTHON -ninja -C "$out" naive cronet cronet_static +cronet_targets="cronet cronet_static" +if echo "$EXTRA_FLAGS" | grep -q "build_static=true"; then + cronet_targets= +fi + +ninja -C "$out" naive $cronet_targets