-
Notifications
You must be signed in to change notification settings - Fork 30.1k
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
build: remove --xcode configure switch #20328
Conversation
`./configure --xcode` ostensibly let you built with the Xcode IDE but it has never been tested regularly since its introduction in 2012 and probably has been broken for years. Remove it. Fixes: nodejs#20324
@bnoordhuis so, I just tested this locally and building with xcode almost works fine fine (though it takes a lot more time than regular Pinging @nodejs/platform-macos to see if anyone has a strong opinion about removing it since it currently works (at least for me). |
For background, the |
I have used it before and it worked just fine. Have not used it for quite a while but I don’t see a reason removing it? If we don’t want bug reports, emitting a warning about it being not supported should be fine. Whoever needs it can figure it out or fix the bug themselves, much like how we treat the android build files. |
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.
Making my -1 explicit
You'll still be able to select the xcode generator with |
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.
LGTM since /configure -- -f xcode
works
`./configure --xcode` ostensibly let you built with the Xcode IDE but it has never been tested regularly since its introduction in 2012 and probably has been broken for years. Remove it. PR-URL: nodejs#20328 Fixes: nodejs#20324 Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Beth Griggs <Bethany.Griggs@uk.ibm.com> Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Gus Caplan <me@gus.host>
Landed in a9051bb 🎉 |
`./configure --xcode` ostensibly let you built with the Xcode IDE but it has never been tested regularly since its introduction in 2012 and probably has been broken for years. Remove it. PR-URL: #20328 Fixes: #20324 Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Beth Griggs <Bethany.Griggs@uk.ibm.com> Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Gus Caplan <me@gus.host>
Just running into this now and can confirm that building via Xcode is broken on current master. I just confirmed that things still build fine on the v8.x branch, so unlike stated, this actually did work until recently. Thus this is a regression that got fixed by removing the flag that made it easily accessible. I understand that lldb exists as an option, but in a lot of cases the Xcode IDE makes it a lot easier to navigate code, inspect variables, etc. especially if debugging Node.js features and v8 API integration. I hope this will get fixed properly even if Xcode users seem to be in the minority :) To be clear, removing the flag is not the problem, but releasing a new version with this regression doesn't seem to be the right thing to do IMHO and should be remedied. |
@thlorenz do you have any time to dig in and see if you can fix building with xcode? |
@MylesBorins not ATM, but if this doesn't get fixed until I do I can have a look. |
@thlorenz By the way if you want to use a GUI frontend for lldb debugging (that's basically what the Xcode debugger does), vscode-lldb works pretty well (although I have not found a way to bring the lldb command line prompt out so I cannot use llnode in vscode like what I used to do in Xcode). EDIT: oh llnode in vscode actually works in the debug console. I guess I just have not used it enough to figure that out.. |
I had a bit of a play with this because I figured the openssl failures shouldn't be hard to fix since they were only recently introduced, and yes, they were easy to fix (once I figured out what the problem was). Unfortunately there's still a node_js2c shell script error and a v8_inspector_compress_protocol_json shell script error, probably introduced not too long ago but not noticed by the core team because nobody around here uses xcode for core. I doubt this is too hard to fix, it might just be a matter of fixing paths in a gyp file or something, but I don't have time to figure these next steps out right now so I'm going to have to leave this on the floor for now. If anyone here, @thlorenz or others, want to tackle this, here's my branch with the openssl fixes and a revert of this commit: https://github.com/rvagg/io.js/tree/rvagg/reinstate-xcode-support |
Hi @thlorenz do you find any workaround to debug nodejs by using XCode IDE so far? |
No, but I haven't tried either so I cannot be of much help at this point. |
./configure --xcode
ostensibly let you built with the Xcode IDE butit has never been tested regularly since its introduction in 2012 and
probably has been broken for years. Remove it.
Fixes: #20324