mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-05 22:02:55 +01:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user