mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-14 08:26:59 +00:00
keep-prefix keeps relative pathing (#7394)
This commit is contained in:
@@ -234,7 +234,7 @@ class TsGenerator : public BaseGenerator {
|
||||
std::string basename = flatbuffers::StripPath(noext);
|
||||
std::string include_file = GeneratedFileName(
|
||||
parser_.opts.include_prefix,
|
||||
parser_.opts.keep_include_path ? noext : basename, parser_.opts);
|
||||
parser_.opts.keep_prefix ? noext : basename, parser_.opts);
|
||||
// TODO: what is the right behavior when different include flags are
|
||||
// specified here? Should we always be adding the "./" for a relative
|
||||
// path or turn it off if --include-prefix is specified, or something
|
||||
|
||||
Reference in New Issue
Block a user