|
|
@@ -5,8 +5,6 @@
|
|
|
#ifndef CARBON_COMMON_BUILD_DATA_LINKSTAMP_H_
|
|
|
#define CARBON_COMMON_BUILD_DATA_LINKSTAMP_H_
|
|
|
|
|
|
-#include <string_view>
|
|
|
-
|
|
|
namespace Carbon::BuildData::Internal {
|
|
|
|
|
|
// See build_data.h; the list of names here should match.
|
|
|
@@ -19,12 +17,13 @@ namespace Carbon::BuildData::Internal {
|
|
|
// use).
|
|
|
//
|
|
|
// Also, when build_data_linkstamp.cpp is compiled, this doesn't receive deps,
|
|
|
-// so we can't use things like `llvm::StringRef` here. As a result, we use
|
|
|
+// so we can't use things like `llvm::StringRef` here. It should ideally be
|
|
|
+// purely hermetic -- not even using STL for `string_view`. As a result, we use
|
|
|
// `build_data.h` as an intermediary to do a `StringRef` wrap.
|
|
|
-extern const std::string_view platform;
|
|
|
+extern const char platform[];
|
|
|
extern const bool build_coverage_enabled;
|
|
|
-extern const std::string_view target_name;
|
|
|
-extern const std::string_view build_target;
|
|
|
+extern const char target_name[];
|
|
|
+extern const char build_target[];
|
|
|
|
|
|
} // namespace Carbon::BuildData::Internal
|
|
|
|