You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
richardlau opened this issue
Jan 12, 2020
· 2 comments
Labels
buildIssues and PRs related to build files or the CI.opensslIssues and PRs related to the OpenSSL dependency.windowsIssues and PRs related to the Windows platform.
As per #31311 (comment) it looks like gyp ignores cflags on Windows when generating for Visual Studio (msvs) so the following from our gyp files for OpenSSL are currently ignored:
In practice we appear to be getting most of these via settings in our common.gypi. For the ones we aren't explicitly setting I don't know enough about Windows for the -Gs0 case to know if this is an issue we want to address (cc @nodejs/platform-windows).
but we switch on /GF and /Gy via StringPooling and EnableFunctionLevelLinking above so this works out?
The text was updated successfully, but these errors were encountered:
richardlau
added
build
Issues and PRs related to build files or the CI.
openssl
Issues and PRs related to the OpenSSL dependency.
windows
Issues and PRs related to the Windows platform.
labels
Jan 12, 2020
buildIssues and PRs related to build files or the CI.opensslIssues and PRs related to the OpenSSL dependency.windowsIssues and PRs related to the Windows platform.
As per #31311 (comment) it looks like gyp ignores
cflags
on Windows when generating for Visual Studio (msvs) so the following from our gyp files for OpenSSL are currently ignored:node/deps/openssl/openssl_common.gypi
Lines 32 to 34 in be46a72
These settings appear to mirror those in OpenSSL's own build configuration:
node/deps/openssl/openssl/Configurations/10-main.conf
Line 1219 in be055d1
node/deps/openssl/openssl/Configurations/10-main.conf
Lines 1242 to 1252 in be055d1
In practice we appear to be getting most of these via settings in our
common.gypi
. For the ones we aren't explicitly setting I don't know enough about Windows for the-Gs0
case to know if this is an issue we want to address (cc @nodejs/platform-windows).Options we already set
-W3
from
node/common.gypi
Line 229 in f4797ff
-GF
from
node/common.gypi
Line 226 in fe05818
-Gy
from
node/common.gypi
Line 196 in be46a72
-nologo
from
node/common.gypi
Line 227 in fe05818
Options we don't currently explicitly set
-wd4090
being addressed by #31311
-Gs0
I don't know if there's a good reason that OpenSSL sets this. The MSDN docs says
/O2
We currently set
node/common.gypi
Line 201 in fe05818
/Ox
:but we switch on
/GF
and/Gy
viaStringPooling
andEnableFunctionLevelLinking
above so this works out?The text was updated successfully, but these errors were encountered: