Skip to content
This repository was archived by the owner on Nov 13, 2026. It is now read-only.

Add ulimit -n 2048 workaround in scripts for mac build - #1507

Merged
MichalStrehovsky merged 1 commit into
dotnet:masterfrom
yizhang82:mac_fix
Jul 12, 2016
Merged

MichalStrehovsky merged 1 commit into
dotnet:masterfrom
yizhang82:mac_fix

Conversation

@yizhang82

Copy link
Copy Markdown
Contributor

@MichalStrehovsky @schellap PTAL. Turns out this is what was causing mac build issues during the dotnet restore step inside build.proj.

@MichalStrehovsky

Copy link
Copy Markdown
Member

We maintain a very similar build.sh and init-tools.sh to what's in the CoreFX repo. The only mention of ulimit in the CoreFX repo is in the init-tools.sh script and we have that line here too. I'm wondering why it's not kicking in.

@yizhang82

Copy link
Copy Markdown
Contributor Author

@MichalStrehovsky It's not kicking in because init-tools.sh is a child-process and ulimit -n 2048 is only effective within that child process. Changing it in the parent-process build.sh is effective in that process and all children. It's not clear to me why CoreFx doesn't need it though - I'll give it a try when I get a chance.

@schellap

Copy link
Copy Markdown

LGTM. The init script would have to be sourced to get that for the other builds.

@MichalStrehovsky
MichalStrehovsky merged commit acf0249 into dotnet:master Jul 12, 2016
@yizhang82

Copy link
Copy Markdown
Contributor Author

Thanks!

@yizhang82
yizhang82 deleted the mac_fix branch July 12, 2016 17:08
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants