Skip to content

Commit

Permalink
Fix generation of schema.h
Browse files Browse the repository at this point in the history
Summary: D68025045 broke `schema.h`. This fixes it.

Reviewed By: iamirzhan

Differential Revision: D68273742

fbshipit-source-id: 68be06b387ae66a4e6780c7a4ac04ebaecfed9cf
  • Loading branch information
Josef Svenningsson authored and facebook-github-bot committed Jan 16, 2025
1 parent a423d7b commit 5bf87b6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion glean/schema/cpp/schema.h
Original file line number Diff line number Diff line change
Expand Up @@ -29613,7 +29613,7 @@ struct ArgumentValue : Predicate<boost::variant<Alt<0, std::string>, Alt<1, std:
struct SCHEMA {
template<typename P> struct index;
static constexpr size_t count = 1321;
static std::string schemaId = "59d399727c5be908f526f7279d0e6ee1";
inline static std::string schemaId = "59d399727c5be908f526f7279d0e6ee1";
template<size_t i> struct predicate;
};

Expand Down
2 changes: 1 addition & 1 deletion glean/schema/gen/Glean/Schema/Gen/Cpp.hs
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ defineSchema ds hash = do
"static constexpr size_t count = "
<> Text.pack (show $ length pnames)
<> ";",
"static std::string schemaId = \"" <> unSchemaId hash <> "\";",
"inline static std::string schemaId = \"" <> unSchemaId hash <> "\";",
"template<size_t i> struct predicate;"
]
, ["};"]
Expand Down

0 comments on commit 5bf87b6

Please sign in to comment.