[cfe-dev] tablegenning projects always build due to add_custom_target

Yaron Keren yaron.keren at gmail.com
Wed Mar 5 01:21:27 PST 2014


While it's true that the project actions don't run, when a tablegenning
project runs under Visual Studio it writes a command file, updates a
timestamp file, ... for 41 projects this is non-neglible time.

Would it make sense to use add_custom_command instead of add_custom_target?

Yaron



2014-03-05 11:06 GMT+02:00 NAKAMURA Takumi <geek4civic at gmail.com>:

> I suppose it's possible behavior in Visual Studio (and msbuild.exe).
> I don't care as far as each generating project would run but it
> doesn't run any actions.
>
> That said, patches welcome :)
>
> 2014-03-05 5:24 GMT+09:00 Yaron Keren <yaron.keren at gmail.com>:
> > Hi,
> >
> >
> > The tablegenning projects of LLVM and clang always run commands since
> they
> > are use add_custom_target which is ALWAYS CONSIDERED OUT OF DATE even if
> the
> > commands try to create a file with the name of the target. See
> >
> >
> http://www.cmake.org/cmake/help/cmake2.6docs.html#command:add_custom_target
> >
> > This causes delay when running clang from an IDE.
> > 41 projects run their commands without any need before clang runs.
> >
> > Is there a better way to handle these targets so they will execute
> commands
> > only when dependencies change, like all the other projects in LLVM?
> >
> > Yaron
> >
> >
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20140305/196b5853/attachment.html>


More information about the cfe-dev mailing list