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

Figure out a way to infer BUILD instead of making users set it #4

Open
alexrp opened this issue Jul 3, 2024 · 0 comments
Open

Figure out a way to infer BUILD instead of making users set it #4

alexrp opened this issue Jul 3, 2024 · 0 comments
Labels
area: build Issues related to the build system. state: deliberation Issues that require design work and/or discussion.

Comments

@alexrp
Copy link
Member

alexrp commented Jul 3, 2024

kruco/bld/toolchain.mk

Lines 11 to 25 in f25c824

# This is needed to convince Autotools that, yes, we do actually want to build a
# cross-compiler even though we are (probably) running on an x86_64 machine.
# Without this, x86_64-pc-linux-gnu is detected as the build machine triple,
# while x86_64-linux-gnu as the target triple gets normalized to that as well,
# so they compare equal.
#
# The downside of this hack is that BUILD needs to be set manually by the user
# if building on some other kind of machine.
#
# TODO: Figure out a better solution?
ifndef BUILD
BUILD := x86_64-cross-linux-gnu
$(warning BUILD variable not set; defaulting to $(BUILD))
endif

@alexrp alexrp added area: build Issues related to the build system. state: deliberation Issues that require design work and/or discussion. type: feature labels Jul 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: build Issues related to the build system. state: deliberation Issues that require design work and/or discussion.
Projects
None yet
Development

No branches or pull requests

1 participant