-
Notifications
You must be signed in to change notification settings - Fork 61
[Build] Add flag to build-win.ps1 that allows to build Release.static target #1408
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
0c41a33
755b820
f32f26a
5d97f94
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -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" | ||
| ) | ||
|
|
||
| $solution = "Solutions\MSTelemetrySDK.sln" | ||
|
|
@@ -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" | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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?
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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. |
||
| } | ||
| } | ||
|
|
||
| echo "Building $actualArch|$actualConfig|$binType..." | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.