diff options
| author | Oskari Timperi <oskari.timperi@iki.fi> | 2018-04-07 10:03:26 +0300 |
|---|---|---|
| committer | Oskari Timperi <oskari.timperi@iki.fi> | 2018-04-07 10:03:26 +0300 |
| commit | b93810afcce708a14ede034e56e1eb159aa65312 (patch) | |
| tree | a140200336f749b81a258ea80dd10cf6b451664a /src/nimpb_build.nim | |
| parent | 8400704ef7e2d0d981e8c6273ae1c7cdd0dc4d43 (diff) | |
| download | nimpb_protoc-b93810afcce708a14ede034e56e1eb159aa65312.tar.gz nimpb_protoc-b93810afcce708a14ede034e56e1eb159aa65312.zip | |
Fix default values for enums in dependencies
The compiler crashed because it didn't have a default value for an enum defined
in another file. Now the compiler finds the definition of the enum when asked
for a default value of an enum.
Diffstat (limited to 'src/nimpb_build.nim')
| -rw-r--r-- | src/nimpb_build.nim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nimpb_build.nim b/src/nimpb_build.nim index 8ab8396..3effaca 100644 --- a/src/nimpb_build.nim +++ b/src/nimpb_build.nim @@ -67,7 +67,7 @@ proc compileProtos*(protos: openArray[string], var outputFilename = myTempDir() / "file-descriptor-set" createDir(myTempDir()) - # add(args, "--include_imports") + add(args, "--include_imports") add(args, "--include_source_info") add(args, &"-o{outputFilename}") @@ -88,7 +88,7 @@ proc compileProtos*(protos: openArray[string], if rc != 0: raise newException(Exception, outp) - processFileDescriptorSet(outputFilename, outdir) + processFileDescriptorSet(outputFilename, outdir, protos) when isMainModule: |
