You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Current test-suite documentation https://llvm.org/docs/TestSuiteGuide.html does not describe setup process for Windows platforms, especially from the build step. I have tryed to fix it going down through build logs in console but new errors were appearing. It is unable to setup environment properly now.
Mainly the reason is that the main measurement source file ..test-suite\tools\timeit.c depends from POSIX includes like <sys/resource.h>
My suggestions would be to rewrite timeit.c in a cross-platform way.
Steps top reproduce:
Get test-suite from GitHub according to documentation
Run
mkdir test-suite-build
cd test-suite-build
cmake \
-DCMAKE_C_COMPILER=<full path to llvm build>/bin/clang.exe \
-DTEST_SUITE_HOST_CC=<full path to llvm build>/bin/clang.exe \
-DCMAKE_LINKER=<full path to llvm build>/bin/lld.exe \
-C../test-suite/cmake/caches/O0.cmake
Run
ninja
Output (shortened):
../tools/timeit.c:15:10: fatal error: 'sys/signal.h' file not found
#include <sys/signal.h>
^~~~~~~~~~~~~~
1 error generated.
The text was updated successfully, but these errors were encountered:
Extended Description
Current test-suite documentation https://llvm.org/docs/TestSuiteGuide.html does not describe setup process for Windows platforms, especially from the build step. I have tryed to fix it going down through build logs in console but new errors were appearing. It is unable to setup environment properly now.
Mainly the reason is that the main measurement source file
..test-suite\tools\timeit.c
depends from POSIX includes like<sys/resource.h>
My suggestions would be to rewrite
timeit.c
in a cross-platform way.Steps top reproduce:
Output (shortened):
The text was updated successfully, but these errors were encountered: