Skip to content

Commit edb5af5

Browse files
committed
Override vcvars options
1 parent 3c46c27 commit edb5af5

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

windows-release/openssl-build.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ parameters:
2121
- name: VCVarsOptions
2222
displayName: 'vcvarsall.bat options'
2323
type: string
24-
required: false
24+
default: '(none)'
2525
- name: IncludeX86
2626
displayName: 'Include x86'
2727
type: boolean
@@ -92,11 +92,14 @@ jobs:
9292
displayName: 'Check out OpenSSL sources'
9393
9494
- script: |
95-
call "$(vcvarsall)" $(VCPlatform) ${{ parameters.VCVarsOptions }}
95+
call "$(vcvarsall)" $(VCPlatform) %EXTRA_OPTS%
9696
perl "$(Build.SourcesDirectory)\Configure" $(OpenSSLPlatform) no-uplink
9797
nmake
9898
workingDirectory: '$(IntDir)'
9999
displayName: 'Build OpenSSL'
100+
env:
101+
${{ if ne(parameters.VCVarsOptions, '(none)') }}:
102+
EXTRA_OPTS: ${{ parameters.VCVarsOptions }}
100103
101104
- ${{ if ne(parameters.SigningCertificate, 'Unsigned') }}:
102105
- template: sign-files.yml

0 commit comments

Comments
 (0)