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

Add extra_flags_per_feature to cc toolchain #575

Merged
merged 3 commits into from
Aug 26, 2024

Conversation

hofbi
Copy link
Contributor

@hofbi hofbi commented Aug 23, 2024

Closes #574

@hofbi hofbi requested a review from benradf as a code owner August 23, 2024 11:57
toolchains/cc/cc.nix Outdated Show resolved Hide resolved
Copy link
Member

@aherrmann aherrmann 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!

@aherrmann aherrmann added the merge-queue merge on green CI label Aug 26, 2024
@mergify mergify bot merged commit a11818b into tweag:master Aug 26, 2024
11 checks passed
@mergify mergify bot removed the merge-queue merge on green CI label Aug 26, 2024
@hofbi hofbi deleted the add_extra_flags_per_feature branch August 26, 2024 13:15
@@ -298,6 +298,7 @@ pkgs.runCommand "bazel-${cc.orignalName or cc.name}-toolchain"
if [[ -x ${cc}/bin/ld.gold ]]; then echo True; else echo False; fi
)
)
EXTRA_FLAGS_PER_FEATURE=()
Copy link
Contributor

Choose a reason for hiding this comment

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

Discovered while testing that Bazel expects a dict here. Noted at #574 (comment).

tool_paths is an example of a dict whose value is set here, the problem is that is a bash associative array (it is represented as a dict as that is the only way it can be).

It may be necessary to handle the case where repr returns [] in toolchains/cc/cc.bzl to fix this.

Copy link
Member

Choose a reason for hiding this comment

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

See also #576

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.

Unfilled template value in Bazel v7.3.0 and v8 preview releases
3 participants