aboutsummaryrefslogtreecommitdiff
path: root/pw_string/BUILD.gn
diff options
context:
space:
mode:
authorDaniel Zheng <dhhzheng@google.com>2022-05-26 10:40:14 +0100
committerCQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com>2022-06-01 16:54:01 +0000
commit225db9b77ad8921f7ffd192cd62c038cc1aa66a0 (patch)
tree93d8f10393fe267f5446f42bf3ab2e74d2aad576 /pw_string/BUILD.gn
parentc3587e6faf02ea90399c799473166bc3f4dd612e (diff)
downloadpigweed-225db9b77ad8921f7ffd192cd62c038cc1aa66a0.tar.gz
pw_string: Add float expansion to host toolchains
Change-Id: I7c68bf283a7333c8faeebad641260f2697465330 Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/95780 Reviewed-by: Wyatt Hepler <hepler@google.com> Commit-Queue: Wyatt Hepler <hepler@google.com>
Diffstat (limited to 'pw_string/BUILD.gn')
-rw-r--r--pw_string/BUILD.gn8
1 files changed, 8 insertions, 0 deletions
diff --git a/pw_string/BUILD.gn b/pw_string/BUILD.gn
index f40886f05..0a77588fd 100644
--- a/pw_string/BUILD.gn
+++ b/pw_string/BUILD.gn
@@ -31,6 +31,14 @@ config("public_include_path") {
include_dirs = [ "public" ]
}
+config("enable_decimal_float_expansion_config") {
+ defines = [ "PW_STRING_ENABLE_DECIMAL_FLOAT_EXPANSION=1" ]
+}
+
+pw_source_set("enable_decimal_float_expansion") {
+ public_configs = [ ":enable_decimal_float_expansion_config" ]
+}
+
pw_source_set("config") {
public = [ "public/pw_string/internal/config.h" ]
public_configs = [ ":public_include_path" ]