summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authormustiikhalil <mustii@mmk.one>2021-10-07 23:22:22 +0200
committerGitHub <noreply@github.com>2021-10-07 23:22:22 +0200
commit4c7a9c10d31ecea7b72fed50d735cecea248b6ea (patch)
treeda61cba4ed346977a01959dc28dead6cf279371f /scripts
parent38295a1873c4ee1486efa35f6ba5dc21ac8d884b (diff)
downloadflatbuffers-4c7a9c10d31ecea7b72fed50d735cecea248b6ea.tar.gz
flatbuffers-4c7a9c10d31ecea7b72fed50d735cecea248b6ea.tar.bz2
flatbuffers-4c7a9c10d31ecea7b72fed50d735cecea248b6ea.zip
Adds JSON encoding to swift (#6874)
Updates generated code & removes unneeded protocol Updates cpp to only generate code when flag is passed Updates code gen script
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/generate_code.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/generate_code.py b/scripts/generate_code.py
index c2287e1f..13968c5e 100755
--- a/scripts/generate_code.py
+++ b/scripts/generate_code.py
@@ -90,7 +90,7 @@ CPP_17_OPTS = NO_INCL_OPTS + [
RUST_OPTS = BASE_OPTS + ["--rust", "--gen-all", "--gen-name-strings"]
TS_OPTS = ["--ts", "--gen-name-strings"]
LOBSTER_OPTS = ["--lobster"]
-SWIFT_OPTS = ["--swift", "--bfbs-filenames", str(tests_path)]
+SWIFT_OPTS = ["--swift", "--gen-json-emit", "--bfbs-filenames", str(tests_path)]
JAVA_OPTS = ["--java"]
KOTLIN_OPTS = ["--kotlin"]
PHP_OPTS = ["--php"]