Switch BuildData to char arrays (#5464)

string_view was suggested at
https://github.com/carbon-language/carbon-lang/pull/5451#discussion_r2080640267,
but it turns out it's helpful to be even more hermetic for build
configuration.
This commit is contained in:
Jon Ross-Perkins
2025-05-12 23:46:02 +00:00
committed by GitHub
parent ad7ea48acd
commit 2f81858a36
5 changed files with 30 additions and 14 deletions
+3 -3
View File
@@ -6,9 +6,9 @@
namespace Carbon::BuildData::Internal {
const std::string_view platform = GPLATFORM;
const char platform[] = GPLATFORM;
const bool build_coverage_enabled = BUILD_COVERAGE_ENABLED;
const std::string_view target_name = G3_TARGET_NAME;
const std::string_view build_target = G3_BUILD_TARGET;
const char target_name[] = G3_TARGET_NAME;
const char build_target[] = G3_BUILD_TARGET;
} // namespace Carbon::BuildData::Internal