nelhage / llama

Apache License 2.0
584 stars 24 forks source link

No such file or directory [-Werror=missing-include-dirs] #24

Open nvartolomei opened 3 years ago

nvartolomei commented 3 years ago

Trying to build https://github.com/clickhouse/clickhouse. Some/most objects have includes passed on command line that are not actually used.

What do you think about parsing compiler flags for such includes and create empty directories as a workaround?

nelhage commented 3 years ago

Ah, hm. I see the problem. We do parse the compile flags to extract the include path and all headers, but we currently just send files to the cloud, and implicitly create directories as needed. We could either send a dummy dotfile for every include path, or tweak the client/runtime protocol to support directories. Either one would be a fairly quick fix, I think.