Skip to content
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

Integrate samu #15

Closed
wants to merge 52 commits into from
Closed

Integrate samu #15

wants to merge 52 commits into from

Conversation

annacrombie
Copy link
Collaborator

No description provided.

annacrombie and others added 25 commits January 10, 2024 07:27
Copy samurai's sources into muon's tree and refactor slightly

To prevent name collisions during bootstrap:
- prefix all identifiers with samu_ or SAMU_

To make reentrant:
- move all global state into a struct that gets passed around (samu_ctx)
- convert all memory allocations to use an arena
This allows muon to run samu -t compdb internally and redirect the
output to compile_commands.json without the ugly fs_redirect functions.
@vtorri
Copy link
Contributor

vtorri commented Jan 14, 2024

on Windows, for os_parallel_job_count(), you can look at

https://learn.microsoft.com/en-us/windows/win32/api/sysinfoapi/nf-sysinfoapi-getlogicalprocessorinformation

and get the value of logicalProcessorCount

@vtorri
Copy link
Contributor

vtorri commented Jan 14, 2024

@annacrombie will you add the windows code ?

@vtorri
Copy link
Contributor

vtorri commented Jan 14, 2024

ideas for getloadavg() on Windows:

giampaolo/psutil@02dd837#top

@annacrombie annacrombie deleted the integrate_samu branch January 25, 2024 11:17
@annacrombie annacrombie restored the integrate_samu branch January 25, 2024 11:17
@annacrombie annacrombie reopened this Jan 25, 2024
@annacrombie annacrombie deleted the integrate_samu branch January 25, 2024 11:26
@annacrombie
Copy link
Collaborator Author

why does github keep auto-closing this?

@annacrombie annacrombie restored the integrate_samu branch January 25, 2024 11:27
@annacrombie annacrombie reopened this Jan 25, 2024
@annacrombie annacrombie deleted the integrate_samu branch January 31, 2024 12:03
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.

3 participants