Skip to content
This repository was archived by the owner on Dec 16, 2020. It is now read-only.

use foreign_cc to build wee8#152

Closed
lizan wants to merge 2 commits intoenvoyproxy:masterfrom
lizan:wee8_build
Closed

use foreign_cc to build wee8#152
lizan wants to merge 2 commits intoenvoyproxy:masterfrom
lizan:wee8_build

Conversation

@lizan
Copy link
Member

@lizan lizan commented Aug 25, 2019

Signed-off-by: Lizan Zhou lizan@tetrate.io

Description:
To propagate CC context better down to gn/ninja.

Additionally, added use_glib=false so glib is no longer needed.

Risk Level:
Testing:
Docs Changes:
Release Notes:

Signed-off-by: Lizan Zhou <lizan@tetrate.io>
Signed-off-by: Lizan Zhou <lizan@tetrate.io>
@PiotrSikora
Copy link
Contributor

Did you see #151? It should address all CC-related problems that you might have.

This is a nice PR, I actually didn't know you can override configure_make this way, so thanks for doing that! Having said that, I'd rather keep this hermetic and working as tested, for the time being, since:

  • This is going to be migrated to BUILD files soon, anyway (I have a working version, but I'm still trying to figure out a weird ASan error).
  • I have a few more PRs staged (pending build: support building wee8 with Clang/libc++ and GCC. #151) to hook sanitizers, update V8, etc. that I'm not sure will work with this approach,
  • I'm trying to get this shipped in 1.3 (i.e. over the next few days), so I'd prefer to avoid unnecessary changes right now,
  • I'm not sure if this solves anything that isn't already addressed by build: support building wee8 with Clang/libc++ and GCC. #151, since it seems that the make step is still executed as a single job and not distributed.

But I'm happy to discuss if you disagree.

@PiotrSikora
Copy link
Contributor

PiotrSikora commented Aug 25, 2019

Since this is separate from this discussion, could you send a PR with use_glib=false (and revert CircleCI image to envoyproxy/envoy-build:cd8574de783791b3353579b489222bfda74888da)?

@PiotrSikora
Copy link
Contributor

Also, this breaks with GCC (see #151 for how it's fixed there with is_clang).

@lizan
Copy link
Member Author

lizan commented Aug 25, 2019

I tested with libc++ and this work as is. Didn’t test gcc but I guess a couple of select should make it work.

Sanitizer flags should be already passed down in this way so I guess ASAN is already working from the CI result, though I haven’t verified it.

PiotrSikora added a commit to PiotrSikora/envoy-wasm that referenced this pull request Aug 25, 2019
Suggested by Lizan in:
envoyproxy#152

Since that was the only custom dependency, we can revert bakc to
upstream's build images.

Signed-off-by: Piotr Sikora <piotrsikora@google.com>
PiotrSikora added a commit that referenced this pull request Aug 25, 2019
Suggested by Lizan in:
#152

Signed-off-by: Piotr Sikora <piotrsikora@google.com>
# 5. Increase VSZ limit to 4TiB (allows us to start up to 370 VMs).
--- a/wee8/build/toolchain/gcc_toolchain.gni
+++ b/wee8/build/toolchain/gcc_toolchain.gni
# 6. Remove Bazel added -fuse-ld=gold if gn chose -fuse-ld=lld
Copy link
Contributor

Choose a reason for hiding this comment

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

Please add: # 7. Disable :compiler_deterministic, because ... (or 6., really).

void free_data();
#else


Copy link
Contributor

Choose a reason for hiding this comment

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

Nit: extra empty lines between patches.

)

configure_make(
name = "wee8",
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit: sort alphabetically.

@PiotrSikora
Copy link
Contributor

@lizan do you want to finish this before I start upstreaming V8, or should I upstream it as-is and migrate to BUILD files in a few weeks?

@lizan
Copy link
Member Author

lizan commented Sep 23, 2019

@PiotrSikora let's drop this and migrating to native BUILD that you have :)

@lizan lizan closed this Sep 23, 2019
bianpengyuan added a commit to bianpengyuan/envoy-wasm that referenced this pull request Feb 21, 2020
* add x-google-user-proj header

Signed-off-by: Pengyuan Bian <bianpengyuan@google.com>

* clean up log

Signed-off-by: Pengyuan Bian <bianpengyuan@google.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants