Skip to content
This repository was archived by the owner on Nov 8, 2023. It is now read-only.

Commit 83bbbf6

Browse files
Treehugger RobotGerrit Code Review
authored andcommitted
Merge "Replace soong config module types with selects" into main
2 parents e0f05a4 + 8c98262 commit 83bbbf6

File tree

1 file changed

+5
-22
lines changed

1 file changed

+5
-22
lines changed

libc/system_properties/Android.bp

Lines changed: 5 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -58,27 +58,10 @@ cc_benchmark {
5858
],
5959
}
6060

61-
soong_config_module_type {
62-
name: "large_system_property_node_cc_defaults",
63-
module_type: "cc_defaults",
64-
config_namespace: "bionic",
65-
bool_variables: [
66-
"large_system_property_node",
67-
],
68-
properties: [
69-
"cflags",
70-
],
71-
}
72-
73-
soong_config_bool_variable {
74-
name: "large_system_property_node",
75-
}
76-
77-
large_system_property_node_cc_defaults {
61+
cc_defaults {
7862
name: "large_system_property_node_defaults",
79-
soong_config_variables: {
80-
large_system_property_node: {
81-
cflags: ["-DLARGE_SYSTEM_PROPERTY_NODE=1"]
82-
}
83-
}
63+
cflags: select(release_flag("RELEASE_LARGE_SYSTEM_PROPERTY_NODE"), {
64+
true: ["-DLARGE_SYSTEM_PROPERTY_NODE=1"],
65+
default: [],
66+
}),
8467
}

0 commit comments

Comments
 (0)