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

cgo: use -I instead of -iquote for source header directories #2687

Merged
merged 2 commits into from
Oct 23, 2020

Conversation

jayconrod
Copy link
Contributor

The go command uses -I for package directories, which makes
directories available for "" and <> includes. We should do the same.

We no longer use ctx.build_file_path, since that directory might not
actually provide any build files, and its value changed in Bazel
3.7.0.

Fixes #2685

The go command uses -I for package directories, which makes
directories available for "" and <> includes. We should do the same.

We no longer use ctx.build_file_path, since that directory might not
actually provide any build files, and its value changed in Bazel
3.7.0.

Fixes bazel-contrib#2685
@google-cla google-cla bot added the cla: yes label Oct 23, 2020
@jayconrod jayconrod merged commit 765f676 into bazel-contrib:master Oct 23, 2020
@jayconrod jayconrod deleted the fix-cgo-include branch October 23, 2020 20:43
jayconrod pushed a commit that referenced this pull request Oct 26, 2020
The go command uses -I for package directories, which makes
directories available for "" and <> includes. We should do the same.

We no longer use ctx.build_file_path, since that directory might not
actually provide any build files, and its value changed in Bazel
3.7.0.

Fixes #2685
jayconrod pushed a commit that referenced this pull request Oct 26, 2020
The go command uses -I for package directories, which makes
directories available for "" and <> includes. We should do the same.

We no longer use ctx.build_file_path, since that directory might not
actually provide any build files, and its value changed in Bazel
3.7.0.

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

Successfully merging this pull request may close these issues.

Fail to build github.com/mattn/go-sqlite3 with Bazel 3.7.0
1 participant