build: fixed clang's warning when building openssl.#25954
build: fixed clang's warning when building openssl.#25954thangktran wants to merge 1 commit intonodejs:masterfrom
Conversation
7a69300 to
480681e
Compare
|
forced-pushed to fix the commit message according to guide-line. |
|
Hello @thangktran and welcome. Thank you for your contribution 🥇 P.S. If you have any questions you can also feel free to contact me directly. |
|
Windows fail is #25988 |
480681e to
b07957d
Compare
|
New CI: https://ci.nodejs.org/job/node-test-pull-request/20668/
It's a false positives, because there was manual testing being done on the CI worker at the same time. Should not repeat. |
b07957d to
4d792bb
Compare
configure.py
Outdated
There was a problem hiding this comment.
This isn't used anymore so should be removed.
There was a problem hiding this comment.
@richardlau We still need 'clang' to enable -Wno-old-style-declaration for linux.
https://github.com/nodejs/node/blob/4d792bbe807d30b7c8f3af379f27f0747958faa2/deps/openssl/openssl_common.gypi#L66-L69
since clang doesn't seem to support this flag and causes #25550
I couldn't find this clang variable being set anywhere in the configure.py .
There was a problem hiding this comment.
I was referring to gcc_version.
There was a problem hiding this comment.
Done.
I found out that we can also use llvm_version instead of clang for the check.
clang doesn't seem to support 'Wno-old-style-declaration', this is a work-around. Fixes: nodejs#25550 Refs: nodejs/node-v0.x-archive#4186
4d792bb to
534ea4a
Compare
|
This PR is ready to land, could someone please take a look. |
|
New CI: https://ci.nodejs.org/job/node-test-pull-request/20784/ (✔️) (Will land later today assuming this comes back non-red). |
|
Landed in 128170f |
clang doesn't seem to support 'Wno-old-style-declaration', this is a work-around. Fixes: #25550 Refs: nodejs/node-v0.x-archive#4186 PR-URL: #25954 Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com> Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: James M Snell <jasnell@gmail.com>
clang doesn't seem to support 'Wno-old-style-declaration', this is a work-around. Fixes: #25550 Refs: nodejs/node-v0.x-archive#4186 PR-URL: #25954 Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com> Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: James M Snell <jasnell@gmail.com>
clang doesn't seem to support 'Wno-old-style-declaration', this is a work-around. Fixes: #25550 Refs: nodejs/node-v0.x-archive#4186 PR-URL: #25954 Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com> Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: James M Snell <jasnell@gmail.com>
clang doesn't seem to support 'Wno-old-style-declaration', this
is a work-around.
Fixes: #25550
Refs: nodejs/node-v0.x-archive#4186
Checklist
make -j4 test(UNIX), orvcbuild test(Windows) passes