Update win-x86-ci.yml (#2557)

Fix build pipeline break
This commit is contained in:
Ryan Hill 2019-12-05 18:44:12 -08:00 committed by GitHub
parent ace132f9aa
commit 854362cf05
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -37,7 +37,7 @@ jobs:
if($env:TELEMETRYGUID)
{
$length = $env:TELEMETRYGUID.length
$fileContent = "#define ENABLE_TELEMETRY`n#define ENABLE_TELEMETRY\n#define TraceLoggingOptionMicrosoftTelemetry() \
$fileContent = "#define ENABLE_TELEMETRY`n#define TraceLoggingOptionMicrosoftTelemetry() \
TraceLoggingOptionGroup("+$env:TELEMETRYGUID.substring(1, $length-2)+")"
New-Item -Path "$(Build.SourcesDirectory)\include\onnxruntime\core\platform\windows\TraceLoggingConfigPrivate.h" -ItemType "file" -Value "$fileContent" -Force
}