libclang depends on ClangDriverOptions since r352803
authorNico Weber <nicolasweber@gmx.de>
Fri, 6 Sep 2019 13:57:12 +0000 (13:57 +0000)
committerNico Weber <nicolasweber@gmx.de>
Fri, 6 Sep 2019 13:57:12 +0000 (13:57 +0000)
commit06487b010d48c36c7714ee083ed38dff65711812
tree79e0280c7efb8833b50f6d18d27395538981abbd
parent5d870c2ec0a631f41ec4387e9d3c6073fea9c178
libclang depends on ClangDriverOptions since r352803

Without this, the build would sometimes fail with

    In file included from clang/tools/libclang/CIndexer.cpp:17:
    In file included from clang/include/clang/Driver/Driver.h:15:
    clang/include/clang/Driver/Options.h:44:10: fatal error:
        'clang/Driver/Options.inc' file not found
    #include "clang/Driver/Options.inc"
             ^~~~~~~~~~~~~~~~~

if Options.inc wasn't generated before libclang was built
by coincidence.

(In the GN build, this works because lib/Driver there declares
the dep on tablegen as a public_dep since the generated file
is part of Driver's public interface, and then things work out
automatically without every client of Driver having to be careful.)

llvm-svn: 371205
clang/tools/libclang/CMakeLists.txt