-
Notifications
You must be signed in to change notification settings - Fork 30k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[v6.x backport] build: refine static and shared lib build #19050
Conversation
@@ -942,6 +941,13 @@ def configure_node(o): | |||
else: | |||
o['variables']['coverage'] = 'false' | |||
|
|||
if options.shared: | |||
o['variables']['node_target_type'] = 'shared_library' | |||
elif options.enable_static: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
elseif?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mihai-iorga node_target_type
is used in line 1446 below. in here it's just to assign correct value. can you elaborate more about your comment?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh .. sorry :)
looks like the backport has some difficulties. let me try to fix those build failures in windows and osx. |
3430575
to
edf0287
Compare
kicked off another CI to verify Windows/macOS build: https://ci.nodejs.org/job/node-test-commit/16566/ |
those build failures are weird, since the Let me do one experiment on the |
edf0287
to
9cf436b
Compare
yeah! seems the trick of |
9cf436b
to
ee6b76f
Compare
Refine the static and shared lib build process in order to integrate static and shared lib verfication into CI. When building both static and shared lib, we still build node executable now and it uses the shared and static lib. Signed-off-by: Yihong Wang <yh.wang@ibm.com> Refs: nodejs#14158 PR-URL: nodejs#17604 Reviewed-By: Bartosz Sosnowski <bartosz@janeasystems.com> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com>
ee6b76f
to
50754c3
Compare
new CI: https://ci.nodejs.org/job/node-test-commit/16621/ to verify windows build |
only failed on arm! the PR is good now. |
@bnoordhuis thanks for the review |
I am going to land this and before that, let me kick off a CI to check the PR again: https://ci.nodejs.org/job/node-test-commit/16941/ @MylesBorins please let me know if you have any concern or if you want to land it. |
@yhwang please hold off on landing. Our LTS branches our supposed to only have the LTS team land commits on. The only reason it isn't currently locked is due to the permission model of GitHub I'm on vacation the rest of this week, but I'll make sure to review and land before the next rc goes out |
@MylesBorins I will leave it to you and no rush. FYI, the failure in the |
@yhwang looks like there is a centos 5 failure as well... which might be a flake. One thing worth noting... the --without-icu stuff is fixing code that was added in a semver major for 9.x, so I'm not 100% it is the same thing |
@MylesBorins thanks for look at this one.
are you talking about the failures in
|
@yhwang there was another failure... but ci results are now gone. Running one more time |
here are the failed test cases:
still the same as the failures you observed in nodejs/build#1182 |
Refine the static and shared lib build process in order to integrate static and shared lib verfication into CI. When building both static and shared lib, we still build node executable now and it uses the shared and static lib. Signed-off-by: Yihong Wang <yh.wang@ibm.com> Refs: #14158 Backport-PR-URL: #19050 PR-URL: #17604 Reviewed-By: Bartosz Sosnowski <bartosz@janeasystems.com> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com>
landed in 8427ec6 |
Refine the static and shared lib build process in order to integrate static and shared lib verfication into CI. When building both static and shared lib, we still build node executable now and it uses the shared and static lib. Signed-off-by: Yihong Wang <yh.wang@ibm.com> Refs: #14158 Backport-PR-URL: #19050 PR-URL: #17604 Reviewed-By: Bartosz Sosnowski <bartosz@janeasystems.com> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com>
Refine the static and shared lib build process in order to integrate static and shared lib verfication into CI. When building both static and shared lib, we still build node executable now and it uses the shared and static lib. Signed-off-by: Yihong Wang <yh.wang@ibm.com> Refs: #14158 Backport-PR-URL: #19050 PR-URL: #17604 Reviewed-By: Bartosz Sosnowski <bartosz@janeasystems.com> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com>
Refine the static and shared lib build process in order
to integrate static and shared lib verfication into CI.
When building both static and shared lib, we still build
node executable now and it uses the shared and static lib.
Signed-off-by: Yihong Wang yh.wang@ibm.com
Refs: #14158
PR-URL: #17604
Reviewed-By: Bartosz Sosnowski bartosz@janeasystems.com
Reviewed-By: Ben Noordhuis info@bnoordhuis.nl
Reviewed-By: Daniel Bevenius daniel.bevenius@gmail.com
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passesAffected core subsystem(s)