Commit be6bd27
authored
Port tools/timeit.c for Windows (#50)
This patch implements timeit timing tool found at tools/timeit.c for Windows.
It is required for compile time and run time calculations by the llvm-testsuite.
At this moment llvm testsuite tests can not be compiled with clang-cl MSVC combination
however we have also made required modifications to the cmake files to enable building
timeit on windows with clang-cl/cl.
In developer console with MSVC following command can be used to successfully build this code:
set CC=c:\work\llvm-dev\build\bin\clang-cl.exe
set CXX=c:\work\llvm-dev\build\bin\clang-cl.exe
cmake -G Ninja -DTEST_SUITE_SUBDIRS= ..\llvm-test-suite
Phabricator Review: https://reviews.llvm.org/D1532631 parent 9ca97f5 commit be6bd27
2 files changed
+397
-34
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
2 | 8 | | |
3 | 9 | | |
4 | 10 | | |
| |||
22 | 28 | | |
23 | 29 | | |
24 | 30 | | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
25 | 36 | | |
26 | 37 | | |
27 | 38 | | |
| |||
0 commit comments