On Mon, Sep 22, 2014 at 6:32 PM, Bill Hoffman <[email protected]>
wrote:
> Maybe if you looked at the very first older than in your output instead of
> the dirty ones it might tell you what ninja thinks is out of date. Could be
> some sort of path issue that has something to do with the way the paths are
> constructed. Again, without seeing the details I can only guess.
>
> Do makefiles work for you? What if you try the "Unix Makefiles" generator
> on the same machine does it have the same problem?
>
> -Bill
>
Unix Makefiles work, but on the make provided by QNX doesn't support the
parallel -j flag.
Found the problem though.
QCC compiler generates for this project dependency files which look like:
c:\projects\my_proj\include\/a.h \
c:\projects\my_proj\src\/a.cpp \
c:\projects\my_proj\other\..\/include/b.h \
c:\projects\my_proj\other\..\/src/b.cpp \
The "\/" combination does not agree with ninja.
I've tried to hack disk_interface.cc:RealDiskInterface::Stat by removing
the "/" prefix.
string dir = DirName(path);
> string base(path.substr(dir.size() ? dir.size() + 1 : 0));
>
> if (base[0] == '/' || base[0] == '\\')
> {
> base.erase(0, 1);
> }
>
>
But this fixes only the a.h and a.cpp case.
The other case with doesn't work though, since the path is no longer
present, Stat received only "include/b.h" and "src/b.cpp".
A workaround would be to search and replace all "\/" occurrences in
all dependency files.
This looks like a ninja bug, I'll report it there.
Thank you for the support.
Cheers,
Cristian.
--
Powered by www.kitware.com
Please keep messages on-topic and check the CMake FAQ at:
http://www.cmake.org/Wiki/CMake_FAQ
Kitware offers various services to support the CMake community. For more
information on each offering, please visit:
CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake