Skip to content

Commit

Permalink
[web] changing user limits for macos (#16797)
Browse files Browse the repository at this point in the history
* changing user limits for macos

* check kernel name instead
  • Loading branch information
Nurhan Turgut committed Feb 25, 2020
1 parent 592b3ff commit 9ac76ad
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion lib/web_ui/dev/felt
Expand Up @@ -53,6 +53,14 @@ install_deps() {
(cd "$FLUTTER_DIR/web_sdk/web_engine_tester"; $PUB_PATH get)
}

KERNEL_NAME=`uname`
if [[ $KERNEL_NAME == *"Darwin"* ]]
then
echo "Running on MacOS. Increase the user limits"
ulimit -n 10000
ulimit -u 2048
fi

if [[ "$FELT_USE_SNAPSHOT" == "false" || "$FELT_USE_SNAPSHOT" == "0" ]]; then
echo "[Snapshot mode: off]"
# Running without snapshot means there is high likelyhood of local changes. In
Expand All @@ -78,4 +86,3 @@ else

$DART_SDK_DIR/bin/dart --packages="$WEB_UI_DIR/.packages" "$SNAPSHOT_PATH" $@
fi

0 comments on commit 9ac76ad

Please sign in to comment.