improved logging and error handling
This commit is contained in:
parent
736af1d894
commit
06bae8f9a3
3 changed files with 15 additions and 1 deletions
|
@ -12,6 +12,16 @@ rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|||
rem See the License for the specific language governing permissions and
|
||||
rem limitations under the License.
|
||||
|
||||
echo "--- CMake"
|
||||
call %~dp0\run_cmake.bat
|
||||
if %errorlevel% neq 0 exit /b %errorlevel%
|
||||
|
||||
echo "--- ninja all"
|
||||
call %~dp0\run_ninja.bat all
|
||||
if %errorlevel% neq 0 exit /b %errorlevel%
|
||||
|
||||
echo "--- ninja check-all"
|
||||
call %~dp0\run_ninja.bat check-all
|
||||
if %errorlevel% neq 0 exit /b %errorlevel%
|
||||
|
||||
echo "--- done"
|
|
@ -25,6 +25,8 @@ cmake.exe ..\llvm -G Ninja -DCMAKE_BUILD_TYPE=Release ^
|
|||
-DLLVM_LIT_ARGS="-v --xunit-xml-output test-results.xml" ^
|
||||
-D LLVM_ENABLE_DIA_SDK=OFF
|
||||
|
||||
if %errorlevel% neq 0 exit /b %errorlevel%
|
||||
|
||||
rem LLVM_ENABLE_DIA_SDK=OFF is a workaround to make the tests pass.
|
||||
rem see https://bugs.llvm.org/show_bug.cgi?id=44151
|
||||
|
||||
|
|
|
@ -19,4 +19,6 @@ cd build
|
|||
call "C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\Common7\Tools\VsDevCmd.bat" -arch=amd64 -host_arch=amd64
|
||||
|
||||
ninja %1
|
||||
if %errorlevel% neq 0 exit /b %errorlevel%
|
||||
|
||||
POPD
|
Loading…
Reference in a new issue