mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-29 21:12:00 +00:00
Correct inverted logic around include prefixes. (#5689)
4d1a9f8d9e inverted the logic around
keeping the include prefix. This change fixes the error.
This commit is contained in:
committed by
Wouter van Oortmerssen
parent
a2c12900aa
commit
bcd58a159b
@@ -76,10 +76,10 @@ std::string GenerateFBS(const Parser &parser, const std::string &file_name) {
|
|||||||
continue;
|
continue;
|
||||||
std::string basename;
|
std::string basename;
|
||||||
if(parser.opts.keep_include_path) {
|
if(parser.opts.keep_include_path) {
|
||||||
|
basename = flatbuffers::StripExtension(it->second);
|
||||||
|
} else {
|
||||||
basename = flatbuffers::StripPath(
|
basename = flatbuffers::StripPath(
|
||||||
flatbuffers::StripExtension(it->second));
|
flatbuffers::StripExtension(it->second));
|
||||||
} else {
|
|
||||||
basename = flatbuffers::StripExtension(it->second);
|
|
||||||
}
|
}
|
||||||
schema += "include \"" + basename + ".fbs\";\n";
|
schema += "include \"" + basename + ".fbs\";\n";
|
||||||
num_includes++;
|
num_includes++;
|
||||||
|
|||||||
Reference in New Issue
Block a user