Skip to content
This repository was archived by the owner on Jan 12, 2024. It is now read-only.

Added building SparseSimulator without Cake#840

Merged
kuzminrobin merged 9 commits intofeature/sparse-simulatorfrom
kuzminrobin/sparseSimIntegr02
Oct 4, 2021
Merged

Added building SparseSimulator without Cake#840
kuzminrobin merged 9 commits intofeature/sparse-simulatorfrom
kuzminrobin/sparseSimIntegr02

Conversation

@kuzminrobin
Copy link
Contributor

@kuzminrobin kuzminrobin commented Sep 29, 2021

Also replaced cl.exe compiler on Win with Clang.
It is not to main it is t o a feature branch.

Write-Host "On Linux build using Clang"
$CC = "clang-11"
$CXX = "clang++-11"
#$clangTidy = "-DCMAKE_CXX_CLANG_TIDY=clang-tidy-11"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would like to preserve the clangTidy fragments for now.

# BUILD C# PART AND TESTS

dotnet build . --configuration $Env:BUILD_CONFIGURATION
# dotnet test . --configuration $Env:BUILD_CONFIGURATION
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would like to preserve this commented-out command for now.

Comment on lines +49 to +54
#if (Get-Command clang-tidy -ErrorAction SilentlyContinue) {
# # Only run clang-tidy if it's installed. This is because the package used by chocolatey on
# # the build pipeline doesn't include clang-tidy, so we allow skipping that there and let
# # the Linux build catch tidy issues.
# $clangTidy = "-DCMAKE_CXX_CLANG_TIDY=clang-tidy"
#}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would like to preserve the clangTidy fragments for now.

@kuzminrobin kuzminrobin force-pushed the kuzminrobin/sparseSimIntegr02 branch from c74d083 to 2157b81 Compare September 29, 2021 05:47
@kuzminrobin kuzminrobin force-pushed the kuzminrobin/sparseSimIntegr02 branch from 7b9e35e to 15fa102 Compare September 29, 2021 17:52
@kuzminrobin
Copy link
Contributor Author

Please review.

bootstrap.ps1 Outdated
.\build.ps1
Pop-Location

Write-Host "Build release flavor of the native simulator"
Copy link
Contributor

@DmitryVasilevsky DmitryVasilevsky Oct 4, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suggest you change it to "full state" rather than "native".

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changed.

# pushd Native\build\(Debug|Release)
Push-Location $BuildDir

$CmakeConfigCommand = "& cmake -G Ninja -D CMAKE_VERBOSE_MAKEFILE:BOOL=ON -D CMAKE_BUILD_TYPE=$Env:BUILD_CONFIGURATION -S ..\.. " # Without `-G Ninja` the compiler chosen is always `cl.exe`.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why does it start with '&'?

Copy link
Contributor Author

@kuzminrobin kuzminrobin Oct 4, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed (I don't remember why it was starting with &).

@kuzminrobin kuzminrobin enabled auto-merge (squash) October 4, 2021 18:09
@kuzminrobin kuzminrobin merged commit 5c02b2d into feature/sparse-simulator Oct 4, 2021
@kuzminrobin kuzminrobin deleted the kuzminrobin/sparseSimIntegr02 branch October 4, 2021 23:33
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants