-
-
Notifications
You must be signed in to change notification settings - Fork 670
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
Set Xcode configuration only when building objc #1555
Conversation
Unfortunately that won't work, since those configurations are needed across all build targets ( That will prevent from accessing |
Are you suggesting I disable it behind a feature flag? I.e. a flag on the command line stops the function from being called. |
I meant try to comment out the line I mentioned, it will then ignore mac OS as an Apple platform. |
Oh yes, that definitely works. And so does providing macos_sdk_version flag. I am trying to get a fix merged here so my organisation does not have to maintain its own fork. |
Sure. I also mean that removing the line altogether may be a better way to fix that than the PR in its actual form which will break iOS build. |
Ie the PR could be removing the line :) |
I see. I updated the PR. Will having objc code still work for macOS platform, or are we saying we should not support it? |
It should still work, although you're right that needs testing. |
I'm not sure I fully understand the impact of this change. Will this break builds with C/C++/ObjC code on macOS? |
I am not sure. @steeve says they should work, and the Travis tests pass. Is there some more testing I can do? |
Travis and BuildKite all seem to be passing, but I doing think we have a CI configuration that tests macOS with only Xcode command line tools; I think all CI machines have Xcode installed. On my laptop, I tried uninstalling Xcode and reinstalling just the command line tools. Builds that include objc fail with the same message with and without this change. Is that intentional, or is everything supposed to pass after this change? |
Yes, I think Objective C definitely needs Xcode. We want to ensure two things with this change:
I think that Travis checked for condition 2, and you and I checked for condition 1. So we should be good now. 😄 |
I hope so :) I'm not familiar enough with ObjC and Xcode support in Bazel to be confident in this change, but it seems like it's working so... |
Resolves #1554.
@steeve Can you also take a look and see if this change works for you?