Skip to content

Conversation

@jayconrod
Copy link
Contributor

  • In .bazelrc:
    • Add --cpu=k8. Without this, Bazel tries to select darwin_arm64 (or whatever
      the native platform is). This is still needed because Bazel still doesn't
      fully support platforms and toolchains for C++.
    • Add comments explaining what's missing and what to change.
    • Remove --tls_certificate. Bazel reports an error if it's used.
      (Should engflow-ca.crt be removed, too?)
  • In //remote_config/cc:
    • Generalize armeabi_cc_toolchain_config to stub_cc_toolchain_config
      and declare a stub for darwin_arm64. This shouldn't be needed in theory,
      and C++ targets build without it, but Java targets need it. More stubs
      may be needed for --cpu values on other platforms.
    • Run buildifier on BUILD.

@jayconrod jayconrod requested review from MIKE-ZW and benjaminp July 14, 2022 22:35
@MIKE-ZW
Copy link
Contributor

MIKE-ZW commented Jul 14, 2022

Awesome! I successfully built bazel build //... locally, and remotely on canary, using M1 Mac host.

Copy link
Contributor

@laszlocsomor laszlocsomor left a comment

Choose a reason for hiding this comment

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

The BUILD files are formatted and also updated, which makes seeing the actual changes difficult.

Could you please create a commit that just formats the files, and rebase this commit on that, finally pushing the two to this PR's branch?

@jayconrod
Copy link
Contributor Author

Sure, just sent #29. Will rebase this one afterward.

@laszlocsomor
Copy link
Contributor

Sure, just sent #29. Will rebase this one afterward.

Thanks!

- In .bazelrc:
  - Add --cpu=k8. Without this, Bazel tries to select darwin_arm64 (or whatever
    the native platform is). This is still needed because Bazel still doesn't
    fully support platforms and toolchains for C++.
  - Add comments explaining what's missing and what to change.
  - Remove --tls_certificate. Bazel reports an error if it's used.
    (Should engflow-ca.crt be removed, too?)
- In //remote_config/cc:
  - Generalize armeabi_cc_toolchain_config to stub_cc_toolchain_config
    and declare a stub for darwin_arm64. This shouldn't be needed in theory,
    and C++ targets build without it, but Java targets need it. More stubs
    may be needed for --cpu values on other platforms.
  - Run buildifier on BUILD.
@jayconrod jayconrod force-pushed the jayconrod-cross-cpp branch from bf92f17 to a95d5f0 Compare July 15, 2022 16:45
@jayconrod
Copy link
Contributor Author

Rebased. Should be ready now.

Copy link
Contributor

@laszlocsomor laszlocsomor left a comment

Choose a reason for hiding this comment

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

Thank you!

@jayconrod jayconrod merged commit 9c62c52 into main Jul 25, 2022
@jayconrod jayconrod deleted the jayconrod-cross-cpp branch July 25, 2022 14:23
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.

4 participants