-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
bazel: branch cc_configure from bazel repo to support libstdc++/libgc… #782
Conversation
If possible can you split this into two PRs:
It will be easier to review, and easier to rebase if we have to merge upstream later. |
… at d6fec93. This is a clean import to support making clear what is going on in envoyproxy#782.
…c static linking. We import cc_configure.bzl from https://github.com/bazelbuild/bazel at d6fec93 in this patch. This allows us to workaround bazelbuild/bazel#2840 (see the header comment for further details).
Now rebased on top of #787. |
if "CC" in repository_ctx.os.environ: | ||
cc_name = repository_ctx.os.environ["CC"].strip() | ||
cc_name = "g++" | ||
if "CXX" in repository_ctx.os.environ: |
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.
So we need to make sure we set CXX now?
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.
epic hacking
Yeah, if compiler isn't g++ in the path.
…On Tue, Apr 18, 2017 at 6:41 PM Matt Klein ***@***.***> wrote:
***@***.**** commented on this pull request.
------------------------------
In bazel/cc_configure.bzl
<#782 (comment)>:
> @@ -387,18 +395,18 @@ def _get_system_root(repository_ctx):
def _find_cc(repository_ctx):
"""Find the C++ compiler."""
- cc_name = "gcc"
- if "CC" in repository_ctx.os.environ:
- cc_name = repository_ctx.os.environ["CC"].strip()
+ cc_name = "g++"
+ if "CXX" in repository_ctx.os.environ:
So we need to make sure we set CXX now?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#782 (review)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AKaLv8mz-xKCU2x5rI-OdnhUJedcBpmiks5rxTwugaJpZM4NAi6m>
.
|
… at d6fec93. (envoyproxy#787) This is a clean import to support making clear what is going on in envoyproxy#782.
… at d6fec93. (envoyproxy#787) This is a clean import to support making clear what is going on in envoyproxy#782.
… at d6fec93. (envoyproxy#787) This is a clean import to support making clear what is going on in envoyproxy#782.
…c static linking.
We import cc_configure.bzl from https://github.com/bazelbuild/bazel at d6fec93 in this patch.
This allows us to workaround bazelbuild/bazel#2840 (see the header comment for further details).