Skip to content

Conversation

@digit-google
Copy link
Contributor

@digit-google digit-google commented Apr 21, 2023

This patch modifies the CMakeLists.txt file to probe for ppoll() on the target system, and define -DUSE_PPOLL=1 if it is available.

This can be disabled by setting -DNINJA_FORCE_PSELECT=ON when invoking CMake.

This matches the default behavior of the configure.py script (and its --force-pselect option). Note that there is no noticeable performance difference before build commands are launched, so this
change is very hard to benchmark properly.

Fix for issue #1821

@jhasse jhasse added this to the 1.12.0 milestone Apr 21, 2023
This patch modifies the CMakeLists.txt file to probe for
ppoll() on the target system, and define -DUSE_PPOLL=1 if
it is available.

This can be disabled by setting -DNINJA_FORCE_PSELECT=ON
when invoking CMake.

This matches the default behavior of the configure.py
script (and its `--force-pselect` option). Note that
there is no noticeable performance difference before
build commands are launched, so this
change is very hard to benchmark properly.

Fix for ninja-build#1821
@jhasse jhasse merged commit a660b3e into ninja-build:master Apr 21, 2023
@digit-google digit-google deleted the use-ppoll branch September 25, 2023 10:54
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.

4 participants