@@ -87,7 +87,7 @@ if ($platform::IsOSPlatform([System.Runtime.InteropServices.OSPlatform]::Linux))
8787
8888Push-Location $buildDir
8989try {
90- $isWindows = $platform ::IsOSPlatform([System.Runtime.InteropServices.OSPlatform ]::Windows)
90+ $runningOnWindows = $platform ::IsOSPlatform([System.Runtime.InteropServices.OSPlatform ]::Windows)
9191
9292 # Use a single release profile for every artifact: portable baseline x64,
9393 # full-program optimization, and link-time dead stripping/folding.
@@ -104,14 +104,14 @@ try {
104104 )
105105 # Only pass the `--gc-sections` linker option on non-Windows platforms;
106106 # on Windows we use MSVC-style linker options (/OPT:REF /OPT:ICF).
107- if (-not $isWindows ) {
107+ if (-not $runningOnWindows ) {
108108 $clangArgs += " /clang:-Wl,--gc-sections"
109109 }
110110
111111 # Libraries that extensions may need on Windows. Link via the build
112112 # system instead of source-level linker pragmas in the extension code.
113113 $linkLibs = @ ()
114- if ($isWindows ) {
114+ if ($runningOnWindows ) {
115115 $linkLibs = @ (" ole32.lib" , " ws2_32.lib" , " winhttp.lib" , " user32.lib" , " gdi32.lib" )
116116 $clangArgs += " /clang:-Wno-deprecated-declarations"
117117 }
@@ -122,7 +122,7 @@ try {
122122 ))
123123 $runtimeArgs += $runtimeSources
124124 $runtimeLinkFlags = @ (" /link" , " /DEF:$runtimeDef " , " /IMPLIB:$runtimeLibName " )
125- if ($isWindows ) {
125+ if ($runningOnWindows ) {
126126 $runtimeLinkFlags += " /OPT:REF"
127127 $runtimeLinkFlags += " /OPT:ICF"
128128 } else {
@@ -162,7 +162,7 @@ try {
162162 $runtimeLibPath
163163 ))
164164 $exeLinkFlags = @ ()
165- if ($isWindows ) {
165+ if ($runningOnWindows ) {
166166 $exeLinkFlags += " /link"
167167 $exeLinkFlags += " /OPT:REF"
168168 $exeLinkFlags += " /OPT:ICF"
@@ -219,7 +219,7 @@ try {
219219 if ($linkLibs.Count -gt 0 ) { $extArgs += $linkLibs }
220220 $extArgs += $runtimeLibPath
221221 $extLinkFlags = @ ()
222- if ($isWindows ) {
222+ if ($runningOnWindows ) {
223223 $extLinkFlags += " /link"
224224 $extLinkFlags += " /OPT:REF"
225225 $extLinkFlags += " /OPT:ICF"
0 commit comments