We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b31fba0 commit 4873dd1Copy full SHA for 4873dd1
cmake/cmake/toolchains/template.cmake
@@ -60,3 +60,6 @@ set(ZEND_CHECK_STACK_LIMIT_EXITCODE 1)
60
61
# Set to exit code of the ttyname_r check.
62
set(HAVE_TTYNAME_R_EXITCODE 0)
63
+
64
+# Set to exit code of the sched_getcpu check.
65
+set(HAVE_SCHED_GETCPU_EXITCODE 0)
cmake/ext/pcntl/CMakeLists.txt
@@ -141,13 +141,14 @@ cmake_push_check_state(RESET)
141
LIBRARY_VARIABLE library
142
)
143
144
- if(_HAVE_SCHED_GETCPU AND NOT CMAKE_CROSSCOMPILING)
+ if(_HAVE_SCHED_GETCPU)
145
if(library)
146
set(CMAKE_REQUIRED_LIBRARIES ${library})
147
endif()
148
check_source_runs(C [[
149
#include <sched.h>
150
- int main(void) {
+ int main(void)
151
+ {
152
if (sched_getcpu() == -1) {
153
return 1;
154
}
0 commit comments