Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 14 additions & 2 deletions score/analysis/tracing/generic_trace_library/flags/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,24 @@
#
# SPDX-License-Identifier: Apache-2.0
# *******************************************************************************
load("@bazel_skylib//rules:common_settings.bzl", "bool_flag")

bool_flag(
name = "enable_typed_memory",
build_setting_default = False,
visibility = [
"//visibility:public",
],
)

# This config_setting is not used in this repository and should be always False
config_setting(
name = "require_typed_memory", #This is a stub and should always be false
name = "require_typed_memory",
constraint_values = [
"@platforms//os:qnx",
"@platforms//os:linux", # Contradicts qnx — ensures this config_setting never matches (stub)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

If we do this, all S-CORE LoLa builds on QNX would go to typed memory. I do not think this is the intended (and aligned) consequence.

If it is indeed the desired outcome, at least the comment 3 lines above must be changed to match what the code does.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Hello @hoppe-and-dreams,
Changes were made to use a bool_flag constraint to set require_typed_memory flag so that score_communication can depend on it without issues. Also the comment above was modified a bit to convey that the flag is not used anywhere in the repository, and the bool_flag is False by default.

],
flag_values = {
":enable_typed_memory": "True",
},
visibility = ["//visibility:public"],
)