4242 ninja clang -j ${{ env.ncpus }}
4343 ninja LLVMOrcDebugging -j ${{ env.ncpus }}
4444 ninja clingInterpreter -j ${{ env.ncpus }}
45+ cd ./tools/
46+ rm -rf $(find . -maxdepth 1 ! -name "cling" ! -name "clang" ! -name ".")
47+ cd ..
48+ rm compile_commands.json build.ninja
49+ cd ../
4550 else
4651 # Apply patches
4752 llvm_vers=$(echo "${{ matrix.clang-runtime }}" | tr '[:lower:]' '[:upper:]')
@@ -64,12 +69,12 @@ runs:
6469 -DLLVM_INCLUDE_TESTS=OFF \
6570 ../llvm
6671 ninja clang clangInterpreter clangStaticAnalyzerCore -j ${{ env.ncpus }}
72+ cd ./tools/
73+ rm -rf $(find . -maxdepth 1 ! -name "clang" ! -name ".")
74+ cd ..
75+ rm compile_commands.json build.ninja
76+ cd ../
6777 fi
68- cd ./tools/
69- rm -rf $(find . -maxdepth 1 ! -name "clang" ! -name ".")
70- cd ..
71- rm compile_commands.json build.ninja
72- cd ../
7378 rm -rf $(find . -maxdepth 1 ! -name "build" ! -name "llvm" ! -name "clang" ! -name ".")
7479 if [[ "${cling_on}" == "ON" ]]; then
7580 cd ./llvm/
@@ -129,6 +134,9 @@ runs:
129134 cmake --build . --config Release --target clang --parallel ${{ env.ncpus }}
130135 cmake --build . --config Release --target LLVMOrcDebugging --parallel ${{ env.ncpus }}
131136 cmake --build . --config Release --target clingInterpreter --parallel ${{ env.ncpus }}
137+ cd .\tools\
138+ rm -r -force $(find.exe . -maxdepth 1 ! -name "cling" ! -name "clang" ! -name ".")
139+ cd ..\..
132140 }
133141 else
134142 {
@@ -156,10 +164,10 @@ runs:
156164 -DCLANG_ENABLE_BOOTSTRAP=OFF `
157165 ..\llvm
158166 cmake --build . --config Release --target clang clangInterpreter clangStaticAnalyzerCore --parallel ${{ env.ncpus }}
167+ cd .\tools\
168+ rm -r -force $(find.exe . -maxdepth 1 ! -name "clang" ! -name ".")
169+ cd ..\..
159170 }
160- cd .\tools\
161- rm -r -force $(find.exe . -maxdepth 1 ! -name "clang" ! -name ".")
162- cd ..\..
163171 rm -r -force $(find.exe . -maxdepth 1 ! -name "build" ! -name "llvm" ! -name "clang" ! -name ".")
164172 if ( "${{ matrix.cling }}" -imatch "On" )
165173 {
0 commit comments