Skip to content

Inherit LD_PRELOAD env vars to support sysconfcpus #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Jul 26, 2017

Conversation

ento
Copy link
Owner

@ento ento commented Jul 26, 2017

sysconfcpus also uses LD_PRELOAD to hijack sysconf and override the number of cpus that elm-make thinks it has, in order not to hog the system.

elm-doc hijacks open, a different function, so there's no conflict: we simply need to pass on the necessary environment variables to the elm-make process we launch to let sysconfcpus do its thing.

Also added retrying logic (with the help of a package) to elm-package install that happens during the build.

@codecov-io
Copy link

codecov-io commented Jul 26, 2017

Codecov Report

Merging #1 into master will increase coverage by 0.07%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master       #1      +/-   ##
==========================================
+ Coverage   97.44%   97.52%   +0.07%     
==========================================
  Files          11       11              
  Lines         313      323      +10     
==========================================
+ Hits          305      315      +10     
  Misses          8        8
Impacted Files Coverage Δ
src/elm_doc/package_tasks.py 100% <100%> (ø) ⬆️
src/elm_doc/__init__.py 100% <100%> (ø) ⬆️
src/elm_doc/asset_tasks.py 97.56% <100%> (+0.19%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 8d9488b...0937f0e. Read the comment docs.

@ento ento force-pushed the sysconfcpus-support branch from d2b5c48 to b19c36c Compare July 26, 2017 17:35
@ento ento force-pushed the sysconfcpus-support branch from 83ba7a6 to a0c3cb6 Compare July 26, 2017 19:20
@ento ento force-pushed the sysconfcpus-support branch from b0e6110 to 0937f0e Compare July 26, 2017 19:42
@ento
Copy link
Owner Author

ento commented Jul 26, 2017

travis agrees, merging

@ento ento merged commit 73ba310 into master Jul 26, 2017
@ento ento deleted the sysconfcpus-support branch July 26, 2017 19:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants