Skip to content
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

Do not apply force_swift_local_debug_options transition. #133

Merged
merged 5 commits into from
Oct 7, 2020

Conversation

amberdixon
Copy link
Collaborator

There should be no difference between applying the local_debug_options_enabled build setting via the command line vs applying it with a transition.

But (possibly due to this bug: bazelbuild/bazel#12171), when bazel sees this transition is present, it adds a transition directory name fragment, even if the build settings are identical to having the local_debug_options_enabled flag specified on command line. This results in a different output directory fragment for dependent artifacts when developers call bazel run xcodeproject with the transition applied vs. when the xcodeproject invokes bazel build <targetname> --local_debug_options_enabled.

…ees this transition is present, it adds a transition directory name fragment, even if the build settings are identical to having the local_debug_options_enabled flag specified on command line.
README.md Outdated Show resolved Hide resolved
@@ -674,7 +674,7 @@ def _xcodeproj_impl(ctx):
xcodeproj = rule(
implementation = _xcodeproj_impl,
doc = """\
Generates a Xcode project file (.xcodeproj) with a reasonable set of defaults
Generates a Xcode project file (.xcodeproj) with a reasonable set of defaults. Specify the --//rules:local_debug_options_enabled when generating the project to ensure debugging of swiftmodules works.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

include the repository in the flag name

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants