Files
verilator/ci/ci-win-test.ps1
T

27 lines
736 B
PowerShell
Raw Normal View History

2024-06-08 19:36:50 -04:00
# DESCRIPTION: Verilator: CI Windows Power Shell - Verilate a test
#
# SPDX-FileCopyrightText: 2024 Wilson Snyder
2024-06-08 19:36:50 -04:00
# SPDX-License-Identifier: LGPL-3.0-only OR Artistic-2.0
################################################################################
Set-PSDebug -Trace 1
2026-07-05 19:15:09 +01:00
$NPROC = $env:NUMBER_OF_PROCESSORS
cd install
$Env:VERILATOR_ROOT=$PWD
cd examples/cmake_tracing_c
mkdir build
cd build
2026-07-05 19:15:09 +01:00
# /Od skips optimization; this only checks the example verilates and builds, so
# an optimized binary is not needed (see ci-win-compile.ps1).
cmake .. "-DCMAKE_CXX_FLAGS_RELEASE=/Od /DNDEBUG"
cmake --build . --config Release -j $NPROC
2024-06-08 19:36:50 -04:00
# TODO put this back in, see issue# 5163
# Release/example.exe
2024-06-08 19:36:50 -04:00
cd ..
Remove-Item -path build -recurse