Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions build-win.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ param (
[string]$enableMini = "true",
[string]$enableTests = "true",
[string]$customProps = "",
[string]$vsDevCmdBat = "C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\Tools\VsDevCmd.bat"
[string]$vsDevCmdBat = "C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\Tools\VsDevCmd.bat",
[string]$libMTSqlite= "true"
Comment thread
lucianopa-msft marked this conversation as resolved.
Outdated
)

$solution = "Solutions\MSTelemetrySDK.sln"
Expand Down Expand Up @@ -59,7 +60,11 @@ foreach ($arch in $archs) {
foreach ($config in $configs) {
$actualConfig = $config
if ($binType -eq "lib") {
$actualConfig += ".vc14x.MT-sqlite"
if ($libMTSqlite -eq "true") {
$actualConfig += ".vc14x.MT-sqlite"
} else {
$actualConfig += ".static"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Because static libs are only supported for x86/x64, should a check be added here to do the guard?

Copy link
Copy Markdown
Member Author

@lucianopa-msft lucianopa-msft Feb 5, 2026

Choose a reason for hiding this comment

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

There is already a check bellow on line 83

if ($binType -eq "lib" -and ($actualArch -eq "ARM")) {

that will skip building static lib anyways for arm.
It could be done earlier, but checking here would be redundant

}
}

echo "Building $actualArch|$actualConfig|$binType..."
Expand Down
Loading