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

build: bazel foundation #19946

Draft
wants to merge 98 commits into
base: dev
Choose a base branch
from
Draft

build: bazel foundation #19946

wants to merge 98 commits into from

Conversation

dotnwat
Copy link
Member

@dotnwat dotnwat commented Jun 21, 2024

Bazel build foundation.

https://redpandadata.atlassian.net/wiki/x/4wCZKg

Backports Required

  • none - not a bug fix
  • none - this is a backport
  • none - issue does not exist in previous branches
  • none - papercut/not impactful enough to backport
  • v24.1.x
  • v23.3.x
  • v23.2.x

Release Notes

  • none

Signed-off-by: Noah Watkins <[email protected]>
Signed-off-by: Noah Watkins <[email protected]>
Signed-off-by: Noah Watkins <[email protected]>
Useful for passing in BOOST_TEST_MODULE=foo to add a main().

Signed-off-by: Noah Watkins <[email protected]>
Signed-off-by: Noah Watkins <[email protected]>
The config option `--@seastar//:numa=True` didn't read very intuitively,
so changed it to `numactl`.

Signed-off-by: Noah Watkins <[email protected]>
Signed-off-by: Noah Watkins <[email protected]>
Signed-off-by: Noah Watkins <[email protected]>
Signed-off-by: Noah Watkins <[email protected]>
Signed-off-by: Noah Watkins <[email protected]>
Signed-off-by: Noah Watkins <[email protected]>
bazel: enable layering_check by default
The version of xxhash provided by bzlmod requires -iquoted includes
which prevents redpanda's use of brackets: <xxhash.h>. this isn't
inherently a problem, we probably should use quoted includes. but in the
interim state where both cmake and bazel are in use we need some
flexibility. so we build xxhash manually so we can control this.

Signed-off-by: Noah Watkins <[email protected]>
git
cargo
rustc
bison
Copy link
Contributor

Choose a reason for hiding this comment

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

to build this on my freshly installed ubuntu noble I also needed xutils-dev for libpciaccess

scripts in the `bazel/` directory.
"""

def redpanda_copts():
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we add the existing copts too:

set(V_DEFAULT_COPTS -Wall -Wextra -Werror -Wno-missing-field-initializers -Wimplicit-fallthrough)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/redpanda area/wasm WASM Data Transforms
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants