1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 19:12:56 +02:00
llvm-mirror/cmake
Rafael Espindola 129f5a2768 Use sched_getaffinity instead of std:🧵:hardware_concurrency.
The issue with std:🧵:hardware_concurrency is that it forwards
to libc and some implementations (like glibc) don't take thread
affinity into consideration.

With this change a llvm program that can execute in only 2 cores will
use 2 threads, even if the machine has 32 cores.

This makes benchmarking a lot easier, but should also help if someone
doesn't want to use all cores for compilation for example.

llvm-svn: 314809
2017-10-03 16:25:15 +00:00
..
modules Revert "[CMake] Remove CMAKE_.*_OUTPUT_DIRECTORY (NFCI)" 2017-09-29 19:50:41 +00:00
platforms [CMake] Add variable IOS to iOS toolchain 2017-02-17 01:11:41 +00:00
config-ix.cmake Use sched_getaffinity instead of std:🧵:hardware_concurrency. 2017-10-03 16:25:15 +00:00
config.guess Remove Bitrig: LLVM Changes 2017-07-21 22:48:47 +00:00
dummy.cpp
nsis_icon.ico
nsis_logo.bmp
README

See docs/CMake.html for instructions on how to build LLVM with CMake.