Skip to content

Commit

Permalink
chore: create include.gypi for Windows build again (microsoft#224445)
Browse files Browse the repository at this point in the history
Co-authored-by: Robo <[email protected]>
  • Loading branch information
rzhao271 and deepak1556 authored Aug 5, 2024
1 parent c7cac33 commit 85c100f
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions build/azure-pipelines/win32/product-build-win32.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,30 @@ steps:
condition: and(succeeded(), ne(variables.NODE_MODULES_RESTORED, 'true'), ne(variables['NPM_REGISTRY'], 'none'))
displayName: Setup NPM Authentication

# Remove once kerberos 2.1.2-alpha.0 or newer is available.
# Ref https://github.com/mongodb-js/kerberos/pull/187 which contains the following patch.
- pwsh: |
$includes = @'
{
'target_defaults': {
'conditions': [
['OS=="win"', {
'msvs_configuration_attributes': {
'SpectreMitigation': 'Spectre'
}
}]
]
}
}
'@
if (!(Test-Path "~/.gyp")) {
mkdir "~/.gyp"
}
echo $includes > "~/.gyp/include.gypi"
displayName: Create include.gypi
condition: and(succeeded(), ne(variables.NODE_MODULES_RESTORED, 'true'))
- powershell: |
. build/azure-pipelines/win32/exec.ps1
. build/azure-pipelines/win32/retry.ps1
Expand Down

0 comments on commit 85c100f

Please sign in to comment.