Displaying 2 results from an estimated 2 matches for "buildninjarel".
2020 Apr 10
2
Running clang tests
Hi Team,
I have checked out the clang and llvm source code and
built the executables using the visual studio 2015 community edition. I am
using Windows as my platform.
However I see that there are some test cases under the clang test folder
in the LLVM.sln. Eg AstMatcherTest,ASTTests etc. I see that these tests
make use of the Google test framework.
In my visual studio I have
2020 Apr 10
4
Running clang tests
...LVM_OPTIMIZED_TABLEGEN=ON
Use Ninja instead for building: https://ninja-build.org/ it’s a lot faster - keep Visual Studio only for debugging.
Ensure ninja.exe is in %PATH%.
From a Visual Studio shell (“x64 Native Tools Command Prompt for VS 2019” in the Start menu) run the following:
* mkdir buildNinjaRel && cd buildNinjaRel
* cmake {your_llvm_root}/llvm -G"Ninja" -DLLVM_ENABLE_PROJECTS=clang;llvm -DCMAKE_BUILD_TYPE=RelWithDebInfo -DLLVM_OPTIMIZED_TABLEGEN=ON
* ninja check-all
You can then debug the test in VS: {your_llvm_root}\buildNinjaRel\tools\clang\unittests\ASTMatche...