Skip to content

Conversation

htuch
Copy link
Member

@htuch htuch commented Jan 29, 2019

I think this was the intended code, I noticed a failure in
compile_time_options for
#5218.

Risk Level: Low
Testing: bazel build --config=libc++ //source/exe:envoy-static

Signed-off-by: Harvey Tuch htuch@google.com

I think this was the intended code, I noticed a failure in
compile_time_options for
envoyproxy#5218.

Risk Level: Low
Testing: bazel build --config=libc++ //source/exe:envoy-static

Signed-off-by: Harvey Tuch <htuch@google.com>
@htuch
Copy link
Member Author

htuch commented Jan 29, 2019

@PiotrSikora while working on #5218, I hit this issue where compile_time_options started to fail. It pointed at a bug I think in the libc++ support.

I'd like to add a regression test for this, but I don't seem to be able to rebuild with libc++ on my gLinux workstation and clang-7. Even with the documented steps here, it complains about stdlib header issues, but then seems to work when I add debug to cc_wrapper.py. Very confused, suspect something strange with the sys.argv iteration but can't pin it down.

Can you take a look at this and let me know what your thoughts are?

Copy link
Contributor

@PiotrSikora PiotrSikora left a comment

Choose a reason for hiding this comment

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

Yes, this was definitely the intended code. Thanks for digging into this!

I guess this worked fine, because the broken code still removed -lstdc++ from the args, and -lc++ is automatically injected when using -stdlib=lc++, so it's wasn't strictly needed.

@htuch htuch merged commit c8aabb6 into envoyproxy:master Jan 29, 2019
@htuch htuch deleted the fix-cc-wrapper branch January 29, 2019 04:33
danzh2010 pushed a commit to danzh2010/envoy that referenced this pull request Jan 31, 2019
I think this was the intended code, I noticed a failure in
compile_time_options for
envoyproxy#5218.

Risk Level: Low
Testing: bazel build --config=libc++ //source/exe:envoy-static

Signed-off-by: Harvey Tuch <htuch@google.com>

Signed-off-by: htuch <htuch@users.noreply.github.com>
fredlas pushed a commit to fredlas/envoy that referenced this pull request Mar 5, 2019
I think this was the intended code, I noticed a failure in
compile_time_options for
envoyproxy#5218.

Risk Level: Low
Testing: bazel build --config=libc++ //source/exe:envoy-static

Signed-off-by: Harvey Tuch <htuch@google.com>
Signed-off-by: Fred Douglas <fredlas@google.com>
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.

3 participants