facebookincubator/Glean

thrift annotations include path changes broke build : thrift-compiler: ./thrift/annotation/cpp.thrift: openFile: does not exist

Closed this issue · 0 comments

mkdir -p .build/def/codegen/thrift-glean-hs
for f in glean/github/if/fb303.thrift glean/github/if/fb303_core.thrift glean/if/glean.thrift glean/config/recipes/recipes.thrift glean/config/recipes/recipes.thrift glean/config/server/server_config.thrift glean/config/service.thrift glean/config/client/client_config.thrift; do
/home/dons/Glean/dist-newstyle/build/aarch64-linux/ghc-8.10.7/thrift-compiler-0.1.0.0/x/thrift-compiler/build/thrift-compiler/thrift-compiler --hs $f -o .build/def/codegen/thrift-glean-hs/$(dirname $f);
done
thrift-compiler: ./thrift/annotation/cpp.thrift: openFile: does not exist (No such file or directory)

internal goes in a subdir, so do it separately

/home/dons/Glean/dist-newstyle/build/aarch64-linux/ghc-8.10.7/thrift-compiler-0.1.0.0/x/thrift-compiler/build/thrift-compiler/thrift-compiler --hs glean/if/internal.thrift
-o .build/def/codegen/thrift-glean-hs/glean/if/internal
thrift-compiler: ./thrift/annotation/cpp.thrift: openFile: does not exist (No such file or directory)
make: *** [Makefile:249: thrift-glean-hs] Error 1